/* =====================================================================
   SAMPATH BANK "NEVER MISS AN OFFER" — styles
   Colours taken from the Sampath Bank logo:
     Orange #F47920 (Sampath brand; deeper #B75B18 for small text) · Charcoal #262626.
     Headlines upper-case, sub-heads & body in sentence case.
   ===================================================================== */
:root {
  --brand: #F47920;      /* Sampath Bank brand orange */
  --brand-ui: #B75B18;   /* deeper orange for small orange text on white, or small white text on orange (WCAG AA) */
  --brand-hero: #F47920; /* hero band: the brand orange */
  --brand-700: #864312;
  --brand-900: #5D2E0C;
  --brand-300: #F8AF79;
  --brand-100: #FCDEC7;
  --brand-50: #FEF6EF;
  --ink: #262626;        /* Sampath charcoal (wordmark) */
  --ink-2: #4A4A4A;
  --grey: #A8A8A8;
  --grey-600: #6B6B6B;
  --line: #E8E8E8;
  --bg: #F6F6F6;
  --white: #FFFFFF;

  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(38, 38, 38, .06), 0 2px 8px rgba(38, 38, 38, .05);
  --shadow: 0 2px 6px rgba(38, 38, 38, .06), 0 12px 32px rgba(38, 38, 38, .09);
  --shadow-lg: 0 24px 64px rgba(38, 38, 38, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.sheet-open, body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- pulse dot ---------- */
.pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; }
.pulse--brand { background: var(--brand); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ping 1.6s var(--ease) infinite; }
.pulse--brand::after { border-color: var(--brand); }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- header ---------- */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.top__logo img { height: 44px; width: auto; }
.top__right { display: flex; align-items: center; gap: 18px; }
.top__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-600); padding-right: 18px; border-right: 1px solid var(--line); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: var(--bg); padding: 7px 12px; border-radius: 999px; }
.live__t { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--brand-ui); font-weight: 700; }
.live__clock { font-variant-numeric: tabular-nums; min-width: 64px; }
.live__tz { color: var(--grey-600); font-weight: 500; font-size: 12px; }
@media (max-width: 600px) {
  .top__in { height: 62px; }
  .top__logo img { height: 32px; }
  .top__label, .live__tz { display: none; }
}

/* ---------- hero ---------- */
/* Solid Sampath-orange band: headline + live stats left, "ending soonest" card right */
.hero { position: relative; background: var(--brand-hero); color: #fff; overflow: hidden; isolation: isolate; }
.hero__shapes i { position: absolute; z-index: -1; display: block; }
.hero__shapes i:nth-child(1) { right: -6%; top: -30%; width: 58%; height: 160%; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,0) 60%); clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%); }
.hero__shapes i:nth-child(2) { right: 30%; bottom: -40%; width: 38%; height: 120%; background: linear-gradient(20deg, rgba(93,46,12,.38), rgba(93,46,12,0) 70%); clip-path: polygon(0 100%, 100% 0, 70% 100%); }
.hero__shapes i:nth-child(3) { left: -8%; top: 55%; width: 30%; height: 90%; background: rgba(255,255,255,.06); clip-path: polygon(0 0, 100% 40%, 0 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 60px; }
.hero__copy { min-width: 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: .98; font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; color: #fff; }
.hero__lede { margin-top: 16px; max-width: 34ch; font-size: 17px; line-height: 1.5; font-weight: 500; color: #fff; }
.stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.stats li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 14px; padding: 10px 16px; min-width: 120px; }
.stats b { display: block; font-size: 28px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.stats span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #fff; }
.hero .feature { margin-top: 0; }
@media (max-width: 920px) {
  .hero__in { grid-template-columns: 1fr; gap: 26px; padding-top: 36px; padding-bottom: 36px; }
  .hero__lede { max-width: none; }
}
@media (max-width: 600px) {
  .hero__in { padding-top: 26px; padding-bottom: 28px; gap: 20px; }
  .hero__eyebrow { font-size: 11px; margin-bottom: 10px; }
  .hero__title { font-size: 2.35rem; }
  .hero__lede { font-size: 15px; margin-top: 10px; }
  .stats { margin-top: 14px; flex-wrap: nowrap; gap: 8px; }
  .stats li { min-width: 0; flex: 1; padding: 8px 10px; }
  .stats b { font-size: 22px; }
  .stats span { font-size: 10.5px; letter-spacing: 0; display: block; line-height: 1.25; }
  .feature { min-height: 0; }
  .feature__card { padding: 18px; border-radius: 18px; }
  .val--big .val__num { font-size: 44px; }
  .sec { padding-top: 34px; }
  .sec--today { padding-top: 30px; padding-bottom: 32px; }
}

/* feature card (ending soonest) */
.feature { min-height: 240px; margin-top: 22px; }
.feature__eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: #fff; }
.feature__eyebrow .pulse--brand { background: #fff; }
.feature__eyebrow .pulse--brand::after { border-color: #fff; }
.feature__card { display: block; width: 100%; text-align: left; border: 0; background: #fff; color: var(--ink); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
.feature__card:hover { transform: translateY(-3px); }
.feature__top { display: flex; align-items: center; gap: 14px; }
.feature__id b { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; }
.feature__id small { color: var(--grey-600); font-size: 13px; font-weight: 500; }
.feature__none { font-size: 18px; font-weight: 600; }

/* ---------- sticky bar ---------- */
.bar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.bar.is-stuck { box-shadow: 0 6px 20px rgba(38,38,38,.08); }
.bar__in { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.tab:hover { background: var(--bg); }
.tab__n { font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bg); color: var(--ink); font-variant-numeric: tabular-nums; }
.tab.is-on { background: var(--ink); color: #fff; }
.tab.is-on .tab__n { background: rgba(255,255,255,.18); color: #fff; }
.tab[data-tab="today"] .tab__n { background: var(--brand-ui); color: #fff; }
.tools { display: flex; gap: 10px; flex: 0 1 460px; }
.search { position: relative; flex: 1; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--grey-600); }
.search input { width: 100%; height: 46px; border: 1.5px solid transparent; background: var(--bg); border-radius: 12px; padding: 0 14px 0 42px; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s, background .15s; }
.search input::placeholder { color: var(--grey-600); }
.search input:focus { outline: none; border-color: var(--ink); background: #fff; }
.fbtn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.fbtn svg { font-size: 18px; }
.fbtn[aria-expanded="true"] { border-color: var(--ink); }
.fbtn__badge { background: var(--brand-ui); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 5px; }
@media (max-width: 920px) {
  .bar__in { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .tools { flex: none; }
  .tabs { margin: 0 -16px; padding: 0 16px; }
}
@media (max-width: 600px) { .fbtn span:not(.fbtn__badge) { display: none; } .fbtn { width: 46px; padding: 0; justify-content: center; position: relative; } .fbtn__badge { position: absolute; top: -6px; right: -6px; } .tab { font-size: 13px; padding: 8px 12px; } }

/* filter panel */
.fpanel { position: absolute; left: 0; right: 0; top: 100%; }
.fpanel__scrim { display: none; }
.fpanel__box { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(38,38,38,.14); padding: 20px 0 18px; max-height: calc(100vh - 160px); overflow: auto; }
.fpanel__grab { display: none; }
.fgroup { margin-bottom: 16px; }
.fgroup__t { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-600); margin-bottom: 8px; }
.fgroup--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__b { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: all .15s; }
.seg__b:hover { border-color: var(--grey); }
.seg__b.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fld { display: grid; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-600); }
.fld select { width: 100%; font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 500; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; background: #fff; }
.fpanel__foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding-top: 6px; }
@media (max-width: 760px) {
  .fpanel { position: fixed; inset: 0; top: auto; z-index: 60; height: 100%; display: flex; align-items: flex-end; }
  .fpanel[hidden] { display: none; }
  .fpanel__scrim { display: block; position: absolute; inset: 0; background: rgba(38,38,38,.45); }
  .fpanel__box { position: relative; width: 100%; border-radius: 22px 22px 0 0; max-height: 86vh; padding-top: 10px; animation: sheet .28s var(--ease); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .fpanel__grab { display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
  .fgroup--row { grid-template-columns: 1fr; }
  .fpanel__foot { position: sticky; bottom: -16px; background: #fff; padding: 12px 0 4px; justify-content: space-between; }
  .fpanel__foot .btn { flex: 1; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* active filters summary */
.summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 0 12px; }
.summary__count { font-size: 14px; margin-right: 4px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--brand-50); color: var(--brand-700); font-weight: 600; font-size: 13px; padding: 6px 10px 6px 12px; border-radius: 999px; }
.fchip span { font-size: 16px; line-height: 1; }
.linkbtn { border: 0; background: none; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); padding: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn svg { font-size: 16px; }
.btn--primary { background: var(--brand-ui); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--more { display: flex; margin: 18px auto 0; background: var(--ink); color: #fff; }
.btn--more:hover { background: #000; }

/* ---------- sections ---------- */
.main { padding-top: 8px; padding-bottom: 64px; position: relative; }
.sec { position: relative; padding: 44px 0 8px; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.sec__eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ui); margin-bottom: 8px; }
.sec__eyebrow .pulse { color: var(--brand); background: var(--brand); }
.sec__date { color: var(--grey-600); }
.sec__eyebrow .pulse + * + .sec__date, .sec--today .sec__date::before { content: ""; }
.sec__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.05; }
.sec__count { vertical-align: .3em; margin-left: 12px; font-size: 14px; font-weight: 700; letter-spacing: 0; background: var(--bg); border-radius: 999px; min-width: 32px; height: 28px; padding: 0 8px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.sec__line { color: var(--grey-600); margin-top: 6px; font-size: 15px; }

/* Today gets its own band: most prominent section */
.sec--today { padding-top: 40px; padding-bottom: 44px; }
.sec--today::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--brand-50); z-index: -1; }
.sec--today .sec__title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.sec--today .sec__count { background: var(--brand-ui); color: #fff; }

/* ---------- grids ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 18px; }
.grid--today { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
@media (max-width: 600px) { .grid, .grid--today { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- logos ---------- */
.logo { width: 60px; height: 60px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.logo--sm { width: 48px; height: 48px; border-radius: 12px; }
.logo--lg { width: 76px; height: 76px; border-radius: 18px; }
.logo--mono { background: var(--ink); box-shadow: none; }
.mono { color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.logo--sm .mono { font-size: 15px; }
.logo--lg .mono { font-size: 24px; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 5px 10px; line-height: 1.2; }
.chip--cat { background: rgba(255,255,255,.94); color: var(--ink); }
.chip--soft { background: var(--bg); color: var(--ink-2); letter-spacing: .04em; font-size: 10.5px; padding: 3px 8px; }

/* ---------- offer card ---------- */
.card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s var(--ease), transform .25s var(--ease), opacity .6s var(--ease); animation: rise .5s var(--ease) both; }
.card:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); transform: translateY(-2px); }
.card__hit { position: absolute; inset: 0; z-index: 1; background: transparent; border: 0; border-radius: inherit; }
.card__media { position: relative; height: 96px; background: var(--ink) var(--img, linear-gradient(135deg, var(--brand-hero), var(--brand-900))) center/cover no-repeat; display: flex; align-items: flex-start; justify-content: space-between; padding: 12px; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,38,38,.05), rgba(38,38,38,.45)); }
.card__media > * { position: relative; z-index: 1; }
.flag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--ink); border-radius: 999px; padding: 5px 10px; }
.flag i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: block; }
.is-live .flag, .is-ending .flag { background: var(--brand-ui); }
.is-live .flag i, .is-ending .flag i { background: #fff; animation: blink 1.2s steps(2, jump-none) infinite; }
.is-soon .flag { background: #fff; color: var(--ink); }
@keyframes blink { 50% { opacity: .2; } }
.card__body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__top { display: flex; align-items: flex-end; gap: 12px; margin-top: -30px; position: relative; z-index: 2; pointer-events: none; }
.card__id { min-width: 0; padding-bottom: 2px; }
.card__merchant { font-size: 16px; font-weight: 700; line-height: 1.25; margin-top: 34px; overflow-wrap: anywhere; }
.card__loc { display: flex; align-items: center; gap: 5px; color: var(--grey-600); font-size: 13px; font-weight: 500; margin-top: 2px; }
.card__loc svg { font-size: 14px; }
.card__when { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--grey-600); font-weight: 500; }
.card__when svg { font-size: 15px; }
.card__actions { display: flex; gap: 8px; margin-top: auto; position: relative; z-index: 2; }
.card__actions .btn { flex: 1; height: 42px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* offer value */
.val__head { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.val__upto { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-600); align-self: center; }
.val__num { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.val__pct { font-size: .6em; margin-left: 1px; }
.val__off { font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.val__sub { font-size: 13px; color: var(--grey-600); font-weight: 500; margin-top: 6px; }
.val__sub .split { display: inline-flex; align-items: center; gap: 8px; }
.val__sub .split b { font-weight: 600; color: var(--ink-2); }
.val__sub .split i { width: 4px; height: 4px; border-radius: 50%; background: var(--grey); }
.val__desc { font-size: 14px; margin-top: 6px; color: var(--ink-2); }
.val__text { font-size: 20px; font-weight: 700; }
.val--big .val__num { font-size: 56px; }
.val--big .val__off { font-size: 22px; }
.feature .val { margin: 18px 0 16px; }
.is-live .val__num, .is-ending .val__num, .is-just .val__num { color: var(--brand-ui); }

/* ---------- countdown: the star of the show ---------- */
.cd { border-radius: 12px; padding: 10px 14px 12px; display: grid; gap: 4px; }
.cd__label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cd__units { display: flex; align-items: flex-start; gap: 4px; font-variant-numeric: tabular-nums; }
.cd__u { display: grid; justify-items: center; min-width: 2.2ch; }
.cd__u b { font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
.cd__u i { font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 2px; }
.cd__u--d { margin-right: 10px; padding-right: 12px; border-right: 1px solid currentColor; border-right-color: color-mix(in srgb, currentColor 25%, transparent); }
.cd__u--d.is-hidden { display: none; }
.cd__sep { font-size: 26px; line-height: 1.1; font-weight: 600; opacity: .45; }

.cd--end { background: var(--brand-ui); color: #fff; }
.cd--start { background: var(--bg); color: var(--ink); }
.cd--start .cd__label { color: var(--grey-600); }
.is-soon .cd--start { background: var(--ink); color: #fff; }
.is-soon .cd--start .cd__label { color: rgba(255,255,255,.75); }
.is-ending .cd--end { animation: urgent 1s ease-in-out infinite; }
@keyframes urgent { 0%, 100% { background: var(--brand-ui); } 50% { background: var(--brand-900); } }
.is-ended { opacity: .45; transform: scale(.97); }
.is-ended .cd { background: var(--grey); animation: none; }
.is-just { box-shadow: 0 0 0 2px var(--brand), 0 12px 32px rgba(244,121,32,.25); animation: rise .5s var(--ease) both, glow 1.2s ease-in-out 3; }
@keyframes glow { 50% { box-shadow: 0 0 0 5px rgba(244,121,32,.35), 0 12px 32px rgba(244,121,32,.25); } }

.cd--hero { padding: 16px 18px; border-radius: 16px; }
.cd--hero .cd__u b { font-size: clamp(40px, 5vw, 56px); }
.cd--hero .cd__sep { font-size: clamp(34px, 4.4vw, 48px); }
.cd--hero .cd__u i { font-size: 10.5px; }
.cd--modal { margin: 18px 0; padding: 14px 18px; }
.cd--modal .cd__u b { font-size: 40px; }
.cd--modal .cd__sep { font-size: 34px; }

/* ---------- compact rows (Coming up) ---------- */
.rows { display: grid; gap: 10px; }
.row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 18px; padding: 12px 16px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; animation: rise .5s var(--ease) both; }
.row:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.row__merchant { font-size: 15px; font-weight: 700; line-height: 1.3; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--grey-600); font-size: 12.5px; font-weight: 500; margin-top: 3px; }
.row__val .val__num { font-size: 26px; }
.row__val .val__off { font-size: 13px; }
.row__val .val__upto { font-size: 10px; }
.row__val .val__sub { font-size: 11.5px; margin-top: 3px; }
.row__acts { display: flex; gap: 6px; position: relative; z-index: 2; }
.cd--row { padding: 8px 12px; grid-auto-flow: row; min-width: 212px; }
.cd--row .cd__u b { font-size: 20px; }
.cd--row .cd__sep { font-size: 18px; }
.cd--row .cd__u i { font-size: 8.5px; }
.cd--row .cd__label { font-size: 10px; }
@media (max-width: 760px) {
  .row { grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; }
  .row__val { grid-column: 2; }
  .row .cd--row { grid-column: 1 / -1; min-width: 0; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
  .row .cd--row .cd__units { justify-content: flex-end; }
  .row__acts { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---------- empty states ---------- */
.empty { background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 28px; text-align: center; display: grid; gap: 8px; justify-items: center; color: var(--grey-600); }
.empty__title { font-size: 20px; font-weight: 700; color: var(--ink); text-transform: uppercase; }
.empty .btn { margin-top: 8px; }
.empty--today { text-align: left; grid-template-columns: 1fr minmax(0, 520px); align-items: center; gap: 24px; justify-items: stretch; padding: 28px 32px; }
.empty__next { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px; border: 0; background: var(--bg); border-radius: 14px; padding: 14px; text-align: left; }
.empty__next .cd--row { grid-column: 1 / -1; background: var(--ink); color: #fff; }
.empty__next .cd__label { color: rgba(255,255,255,.75); }
.empty__nextid b { display: block; color: var(--ink); font-size: 15px; }
.empty__nextid small { font-size: 12.5px; }
.empty--slim { padding: 18px 22px; text-align: left; justify-items: start; background: var(--bg); box-shadow: none; font-size: 14px; }
.empty--big { padding: 48px 24px; margin-top: 32px; }
@media (max-width: 760px) { .empty--today { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- categories ---------- */
.cats { padding: 52px 0 8px; }
.cats--compact { padding: 16px 0 0; }
.cats--compact .cats__grid { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 4px 24px 8px; }
.cats--compact .cats__grid::-webkit-scrollbar { display: none; }
.cats--compact .cat { flex: 0 0 176px; height: 92px; }
.cats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.cat { position: relative; height: 140px; border: 0; border-radius: 16px; overflow: hidden; color: #fff; text-align: left; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: var(--ink) var(--img, linear-gradient(135deg, var(--brand-hero), var(--brand-900))) center/cover no-repeat; isolation: isolate; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(38,38,38,0) 30%, rgba(38,38,38,.86)); transition: background .25s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat.is-on { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
.cat.is-on::before { background: linear-gradient(180deg, rgba(244,121,32,.2), rgba(93,46,12,.88)); }
.cat__name { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
.cat__count { display: flex; gap: 10px; font-size: 12px; font-weight: 600; opacity: .95; flex-wrap: wrap; }
.cat__count b { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.cat__count b i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #fff; }
@media (max-width: 600px) { .cats__grid { grid-template-columns: 1fr 1fr; gap: 10px; } .cat { height: 118px; } .cats--compact .cats__grid { margin: 0 -16px; padding: 4px 16px 8px; } }

/* ---------- notice ---------- */
.notice { margin-top: 24px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 10px; justify-items: start; }
.notice__t { font-weight: 700; font-size: 17px; }

/* ---------- footer ---------- */
.foot { margin-top: 24px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.foot__cond { font-size: 12px; color: var(--grey-600); padding-bottom: 10px; }
.foot__line { height: 2px; background: var(--brand); }
.foot__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 22px; }
.foot__contact { font-size: 18px; font-weight: 500; }
.foot__web { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-top: 2px; }
.foot__web a { text-decoration: none; font-weight: 500; }
.foot__social { display: inline-flex; gap: 4px; }
.foot__social:empty { display: none; }
.foot__social a { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; background: var(--grey); color: #fff; }
.foot__social a:hover { background: var(--ink); }
.foot__social svg { width: 14px; height: 14px; fill: currentColor; }
.foot__fitch { font-size: 11.5px; color: var(--grey-600); margin-top: 8px; }
.foot__logo { height: 52px; width: auto; }
@media (max-width: 600px) { .foot__in { flex-direction: column-reverse; align-items: flex-start; } .foot__logo { height: 40px; align-self: flex-end; } .foot__contact { font-size: 16px; } }

/* ---------- modal ---------- */
.modal { width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 22px; box-shadow: var(--shadow-lg); color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(38,38,38,.55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__x { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); display: grid; place-items: center; font-size: 20px; box-shadow: var(--shadow-sm); }
.m__media { height: 150px; background: var(--ink) var(--img, linear-gradient(135deg, var(--brand-hero), var(--brand-900))) center/cover; position: relative; padding: 16px; }
.m__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,38,38,0), rgba(38,38,38,.4)); }
.m__media .chip { position: relative; z-index: 1; }
.m__inner { padding: 0 26px 26px; }
.m__top { display: flex; align-items: flex-end; gap: 16px; margin-top: -38px; position: relative; z-index: 1; }
.m__title { font-size: 22px; font-weight: 700; line-height: 1.2; margin-top: 44px; }
.m__desc { margin-top: 16px; font-size: 16px; }
.ctiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.ctile { border-radius: 14px; padding: 14px 16px; background: var(--bg); display: grid; gap: 2px; }
.ctile span { font-size: 12px; font-weight: 600; color: var(--grey-600); }
.ctile b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ctile:first-child b { color: var(--brand-ui); }
.dl { margin: 0; display: grid; gap: 12px; }
.dl__r { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 14.5px; }
.dl dt { display: flex; align-items: center; gap: 8px; color: var(--grey-600); font-weight: 600; }
.dl dt svg { font-size: 16px; }
.dl dd { margin: 0; }
.m__terms { margin-top: 20px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); display: grid; gap: 6px; }
.m__terms-t { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }
.m__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.m__actions .btn { flex: 1 1 auto; }
@media (max-width: 600px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .modal[open] { animation: sheet .3s var(--ease); }
  .dl__r { grid-template-columns: 1fr; gap: 2px; }
  .m__inner { padding: 0 18px calc(22px + env(safe-area-inset-bottom)); }
  .cd--modal .cd__u b { font-size: 32px; }
}

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 80; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; animation: slidein .35s var(--ease); transition: opacity .5s, transform .5s; }
.toast.is-out { opacity: 0; transform: translateX(20px); }
.toast__i { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-size: 14px; }
@keyframes slidein { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ---------- drop overlay ---------- */
.drop { position: fixed; inset: 0; z-index: 90; background: rgba(244,121,32,.92); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.drop[hidden] { display: none; }
.drop p { border: 3px dashed rgba(255,255,255,.7); border-radius: 24px; padding: 48px 56px; pointer-events: none; }

/* ---------- demo controls ---------- */
.demo { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; display: grid; gap: 8px; justify-items: start; }
.demo.is-invisible { opacity: 0; pointer-events: none; }
.demo__btn { border: 0; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; opacity: .35; transition: opacity .2s; }
.demo__btn:hover, .demo__btn[aria-expanded="true"], .demo__btn:focus-visible { opacity: 1; }
.demo__panel { background: var(--ink); color: #fff; border-radius: 16px; padding: 14px; width: 240px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; }
.demo__t { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; }
.demo__t span { font-variant-numeric: tabular-nums; opacity: .8; }
.demo__track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.demo__bar { height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }
.demo__row { display: flex; gap: 6px; }
.dbtn { flex: 1; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; border-radius: 8px; padding: 7px 0; font-size: 12.5px; font-weight: 600; }
.dbtn:hover { background: rgba(255,255,255,.1); }
.dbtn[aria-pressed="true"] { background: #fff; color: var(--ink); }
.demo__hint { font-size: 11px; opacity: .6; }
.demo__hint kbd { font: inherit; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 0 4px; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
body.sheet-open .demo, body.modal-open .demo { display: none; }
.previewbar { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }
.previewbar a { color: #fff; font-weight: 700; margin-left: 8px; }
/* live offers with more than a day left: calmer countdown, so the ones
   ending today stand out in solid orange */
.is-long .cd--end { background: var(--brand-50); color: var(--brand-ui); box-shadow: inset 0 0 0 1.5px var(--brand-100); }
.is-long .cd--end .cd__label { color: var(--brand-700); }
.cat { background-position: center top; }
@media (max-width: 600px) { .sec__count { display: none; } }

/* ---------- small / icon buttons ---------- */
.btn--icon { flex: 0 0 auto !important; width: 42px; padding: 0; }
.btn--icon svg { font-size: 18px; }
.btn--sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; gap: 6px; }
.btn--sm.btn--icon { width: 36px; padding: 0; }
.btn svg { flex: none; }
.card__actions .btn:not(.btn--icon) { flex: 1; }
.card__actions .btn--ghost svg { font-size: 15px; }
.m__share { margin-top: 20px; display: grid; gap: 10px; }
.m__terms a, .dl dd a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- share ---------- */
.shares { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.sh { display: grid; justify-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 6px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); transition: border-color .15s, transform .15s; }
.sh:hover { border-color: var(--ink); transform: translateY(-1px); }
.sh__i { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 20px; }
.sh:first-child .sh__i { background: var(--brand-50); color: var(--brand-ui); }
.sharedlg { width: min(460px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 22px; box-shadow: var(--shadow-lg); color: var(--ink); }
.sharedlg::backdrop { background: rgba(38,38,38,.5); backdrop-filter: blur(3px); }
.sharedlg[open] { animation: pop .25s var(--ease); }
.sharedlg__t { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; padding-right: 44px; }
.sharedlg__o { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 14px; padding: 10px; margin-bottom: 14px; }
.sharedlg__o b { display: block; font-size: 15px; }
.sharedlg__o small { display: block; font-size: 12.5px; color: var(--grey-600); line-height: 1.35; }
.sharedlg .modal__x { box-shadow: none; background: var(--bg); }
.modal .toasts, .sharedlg .toasts { position: fixed; top: 16px; left: 50%; right: auto; transform: translateX(-50%); }
@media (max-width: 600px) {
  .sharedlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .sharedlg[open] { animation: sheet .3s var(--ease); }
  .shares { grid-template-columns: 1fr 1fr; }
  .sh { grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; text-align: left; }
  .shares .sh:nth-child(5) { grid-column: 1 / -1; }
}
body.share-open .demo { display: none; }

/* add to calendar */
.shares--cal { grid-template-columns: repeat(3, 1fr); }
.sh--cal .sh__i { color: var(--ink); }
.sh--cal:first-child .sh__i { color: #1a73e8; background: #e8f0fe; }
.sh--cal small { display: block; font-weight: 500; color: var(--grey-600); font-size: 11.5px; }
.sharedlg__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12.5px; color: var(--grey-600); line-height: 1.4; }
.sharedlg__note svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }
.m__promo { margin-top: 10px; display: inline-block; background: var(--brand-50); color: var(--brand-700); border: 1.5px dashed var(--brand-300); border-radius: 10px; padding: 6px 10px; font-weight: 700; font-size: 14px; }
@media (max-width: 600px) { .shares--cal { grid-template-columns: 1fr; } .shares--cal .sh:nth-child(5) { grid-column: auto; } }

/* about + FAQ (crawlable text above the footer) */
.about { background: var(--brand-50); border-top: 1px solid var(--line); padding: 48px 0 40px; }
.about__in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start; }
.about__title { font-size: 22px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; color: var(--ink); }
.about__title--sm { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.about__copy p { font-size: 15px; line-height: 1.6; color: var(--grey-600); margin-bottom: 12px; max-width: 62ch; }
.about__cats { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.about__cats a { display: inline-block; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; transition: border-color .15s, color .15s; }
.about__cats a:hover, .about__cats a:focus-visible { border-color: var(--brand-ui); color: var(--brand-ui); }
.about__faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; }
.about__faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.about__faq summary::-webkit-details-marker { display: none; }
.about__faq summary::after { content: "+"; font-weight: 600; color: var(--brand-ui); font-size: 18px; line-height: 1; }
.about__faq details[open] summary::after { content: "–"; }
.about__faq details p { font-size: 14px; line-height: 1.55; color: var(--grey-600); padding-bottom: 14px; }
.about__faq a { color: var(--brand-ui); font-weight: 600; }
@media (max-width: 860px) { .about__in { grid-template-columns: 1fr; gap: 28px; } .about { padding: 36px 0 28px; } }

/* links inside card titles (for search engines; the whole card is the click target) */
.card__merchant a, .row__merchant a { color: inherit; text-decoration: none; }
.foot__cond a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* cookie banner */
.cookies { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; max-width: 760px; margin: 0 auto;
  background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 18px 20px;
  display: flex; gap: 18px; align-items: center; animation: rise .35s var(--ease) both; }
.cookies__t { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.cookies p { font-size: 13px; line-height: 1.5; color: var(--grey-600); }
.cookies__in p:first-child { color: var(--ink); }
.cookies a { color: var(--brand-ui); font-weight: 600; }
.cookies__btns { display: flex; gap: 8px; flex: none; }
.cookies__btns .btn { white-space: nowrap; }
@media (max-width: 640px) { .cookies { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; } .cookies__btns .btn { flex: 1; } }

/* categories at the top of the page */
.cats--top { padding: 30px 0 26px; }
.cats--top .sec__head { margin-bottom: 14px; }
.cats--top .sec__title { font-size: clamp(1.3rem, 2.3vw, 1.7rem); }
.cats--top .sec__line { font-size: 14px; margin-top: 4px; }
.cats--top .cats__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cats--top .cat { height: 108px; padding: 12px 14px; border-radius: 14px; }
.cats--top .cat__name { font-size: 13.5px; }
.cats--top .cat__count { font-size: 11.5px; gap: 8px; }
@media (max-width: 1040px) { .cats--top .cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .cats--top { padding: 22px 0 18px; }
  .cats--top .sec__head { margin-bottom: 10px; }
  .cats--top .cats__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; gap: 10px; }
  .cats--top .cats__grid::-webkit-scrollbar { display: none; }
  .cats--top .cat { flex: 0 0 150px; height: 100px; scroll-snap-align: start; }
}

/* ---------- filters panel (tidier layout) ---------- */
.fpanel__box { padding: 0 0 18px; background: #fff; }
.fpanel__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.fpanel__title { font-size: 16px; font-weight: 800; }
.fpanel__title span { color: var(--brand-ui); }
.fpanel__x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; color: var(--ink); }
.fpanel__x svg { width: 18px; height: 18px; }
.fcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px 48px; }
.fcol { min-width: 0; }
.fgroup { margin-bottom: 20px; }
.fgroup__t { font-size: 11.5px; letter-spacing: .12em; margin-bottom: 10px; }
.fgroup--row { max-width: none; gap: 12px; }
/* card type: one segmented control */
.seg--fill { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--bg); border-radius: 14px; }
.seg--fill .seg__b { border: 0; border-radius: 10px; background: transparent; padding: 10px 8px; font-size: 14px; color: var(--ink-2); }
.seg--fill .seg__b.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(38,38,38,.12), 0 0 0 1.5px var(--brand); }
/* when: compact chips */
.seg--chips { gap: 6px; }
.seg--chips .seg__b { padding: 7px 13px; font-size: 13px; }
.seg--chips .seg__b.is-on { background: var(--brand-ui); border-color: var(--brand-ui); color: #fff; }
/* category: even grid with counts */
.cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.copt { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 10px 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; transition: border-color .15s, background .15s; }
.copt:hover { border-color: var(--grey); }
.copt__n { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.copt__c { flex: none; font-size: 11.5px; font-weight: 700; color: var(--grey-600); background: var(--bg); border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.copt.is-on { border-color: var(--brand); background: var(--brand-50); }
.copt.is-on .copt__n { color: var(--brand-ui); }
.copt.is-on .copt__c { background: var(--brand); color: #fff; }
.fld { letter-spacing: .12em; font-size: 11.5px; }
.fld select { font-size: 14.5px; appearance: none; -webkit-appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23262626' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.fpanel__foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.fpanel__foot .btn { min-width: 190px; }
@media (max-width: 1040px) { .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .fpanel__box { padding-top: 8px; display: flex; flex-direction: column; }
  .fpanel__box > .wrap { display: flex; flex-direction: column; min-height: 0; }
  .fpanel__grab { margin-bottom: 4px; }
  .fpanel__head { padding: 6px 0 12px; margin-bottom: 14px; position: sticky; top: -8px; background: #fff; z-index: 2; }
  .fcols { grid-template-columns: 1fr; gap: 0; }
  .fgroup { margin-bottom: 18px; }
  .seg--chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .seg--chips::-webkit-scrollbar { display: none; }
  .seg--chips .seg__b { flex: none; }
  .fgroup--row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fpanel__foot .btn { min-width: 0; }
}

/* ---------- hero with the family image ---------- */
.hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); grid-template-areas: "copy art" "meta art"; gap: 0 32px; align-items: start; padding-top: 52px; padding-bottom: 44px; }
.hero__copy { grid-area: copy; align-self: end; }
.hero__meta { grid-area: meta; }
.hero__art { grid-area: art; align-self: end; position: relative; margin-bottom: -44px; display: flex; justify-content: center; }
.hero__art::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 88%; z-index: 0; border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(255,255,255,.55), rgba(255,248,240,.18) 55%, rgba(255,255,255,0) 72%); }
.hero__art picture { position: relative; z-index: 1; display: block; width: 100%; max-width: 640px; }
.hero__art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(93,46,12,.28)); }
.hero__title { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.hero .stats { margin-top: 24px; }
/* "ending soonest" as a compact ticket */
.hero .feature { margin-top: 18px; min-height: 0; max-width: 560px; }
.hero .feature__eyebrow { margin-bottom: 8px; font-size: 11.5px; }
.hero .feature__card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top cd" "val cd"; gap: 6px 18px; align-items: center; padding: 14px 16px; border-radius: 18px; }
.hero .feature__top { grid-area: top; gap: 12px; }
.hero .feature__top .logo { width: 48px; height: 48px; border-radius: 12px; }
.hero .feature__id b { font-size: 16px; }
.hero .feature__id small { font-size: 12px; }
.hero .feature .val { grid-area: val; margin: 2px 0 0; }
.hero .feature .val--big .val__num { font-size: 34px; }
.hero .feature .val__sub { font-size: 12px; }
.hero .feature .cd { grid-area: cd; padding: 10px 12px; align-self: stretch; align-content: center; }
.hero .feature .cd__u b { font-size: 24px; }
.hero .feature .cd__sep { font-size: 20px; }
@media (max-width: 1000px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .hero .feature__card { grid-template-columns: 1fr; grid-template-areas: "top" "val" "cd"; }
}
@media (max-width: 760px) {
  .hero__in { grid-template-columns: 1fr; grid-template-areas: "copy" "art" "meta"; gap: 0; padding-top: 26px; padding-bottom: 26px; }
  .hero__art { margin: 14px -16px 0; }
  .hero__art picture { max-width: 460px; }
  .hero__art::before { left: 10%; right: 10%; height: 82%; }
  .hero .stats { margin-top: 0; position: relative; z-index: 2; }
  .hero__meta { margin-top: -6px; }
  .hero .feature { margin-top: 16px; max-width: none; }
  .hero .feature__card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top cd" "val cd"; padding: 12px 14px; gap: 4px 12px; }
  .hero .feature__top .logo { width: 40px; height: 40px; }
  .hero .feature__id b { font-size: 15px; }
  .hero .feature .val--big .val__num { font-size: 28px; }
  .hero .feature .cd { padding: 8px 10px; }
  .hero .feature .cd__label { font-size: 9.5px; }
  .hero .feature .cd__u b { font-size: 19px; }
  .hero .feature .cd__u i { font-size: 8px; }
  .hero .feature .cd__u--d { margin-right: 6px; padding-right: 7px; }
  .hero .feature .cd__sep { font-size: 16px; }
}
@media (min-width: 1001px) { .hero__art picture { max-width: 740px; margin-right: -28px; } }
@media (max-width: 760px) {
  .cats--top .cats__grid { scroll-padding: 0 16px; }
  .cats--top .cat { flex-basis: 156px; padding: 10px 12px; }
  .cats--top .cat__name { font-size: 12.5px; }
}
/* phones: stats sit below the photo, not over it */
@media (max-width: 760px) {
  .hero__art { margin: 12px -16px 0; }
  .hero__meta { margin-top: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.35); position: relative; z-index: 2; }
}
