/* Preview-only homepage redesign. Loaded only on this branch's homepage. */
body.hp-redesign{
  --bg:#f6f7fb;
  --card:#fff;
  --ink:#111827;
  --muted:#6b7280;
  --line:#eceef3;
  --brand:#111827;
  --brand2:#2563eb;
  --radius:18px;
  background:var(--bg);
  color:var(--ink);
}
body.hp-redesign .nav{
  background:#fff;
  box-shadow:none;
  border-bottom:1px solid var(--line);
}
body.hp-redesign .nav-in{height:56px;padding-block:0}
body.hp-redesign .logo{font-size:15px;letter-spacing:-.02em}
body.hp-redesign .logo-mark{width:28px;height:28px;border-radius:8px;font-size:11px}
body.hp-redesign .nav-links a{
  padding:6px 8px;
  font-size:13px;
  font-weight:600;
  color:#6b7280;
  min-height:36px;
}
body.hp-redesign .nav-links a:hover{background:#f3f4f6;color:var(--ink)}

body.hp-redesign .hero{
  background:#fff;
  border-bottom:0;
}
body.hp-redesign .hero-in{
  padding:64px 24px 28px;
  max-width:820px;
  margin:0 auto;
}
body.hp-redesign .hero h1{
  font-size:clamp(32px,5vw,48px);
  letter-spacing:-.04em;
  line-height:1.1;
  font-weight:750;
  max-width:16ch;
  margin:12px auto 12px;
  color:var(--ink);
}
body.hp-redesign .hero .lede{
  max-width:42em;
  margin:0 auto 28px;
  font-size:17px;
  color:var(--muted);
  line-height:1.5;
}
body.hp-redesign .hero .pill{
  display:inline-flex;
  gap:8px;
  background:#f3f4f6;
  border:0;
  box-shadow:none;
  color:#4b5563;
  font-size:13px;
}
body.hp-redesign .hero-ctas-quiet{
  display:flex;
  justify-content:center;
  gap:18px;
  margin:0 0 8px;
}
body.hp-redesign .hero-ctas-quiet .btn{
  background:none;
  border:0;
  box-shadow:none;
  color:var(--brand2);
  font-size:14px;
  font-weight:650;
  padding:0;
  min-height:auto;
}
body.hp-redesign .hero-ctas-quiet .btn.primary,
body.hp-redesign .hero-ctas-quiet .btn.ghost{background:none;color:#2563eb}
body.hp-redesign .hero-in>p[style]{display:none} /* "Explore the latest guides" stays in footer/guides; hide cramped inline style line? KEEP for links - don't hide if it has a unique href. We'll show it quietly */
body.hp-redesign .hero-in>p[style]{display:block;margin:0 0 18px;font-size:13px!important;color:var(--muted);text-align:center}

/* Prominent single search */
body.hp-redesign .hero-finder{
  margin:8px auto 0;
  padding:8px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:999px;
  box-shadow:0 10px 30px rgba(17,24,39,.06);
  max-width:640px;
  text-align:left;
}
body.hp-redesign .hero-finder .finder-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
body.hp-redesign .hero-finder .search-field{display:flex;align-items:center;gap:8px;margin:0;padding:0 8px 0 18px}
body.hp-redesign .hero-finder .finder-input{
  margin:0;
  border:0;
  box-shadow:none;
  background:transparent;
  font-size:16px;
  height:52px;
  border-radius:0;
}
body.hp-redesign .hero-finder .search-results{
  margin:8px 8px 8px;
  border-radius:16px;
}

/* Category chips under hero */
body.hp-redesign .hero-cats{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  max-width:900px;
  margin:8px auto 8px;
  padding:0 24px 8px;
}
body.hp-redesign .hero-cat{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:6px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--ink);
  text-decoration:none;
  font-size:13px;
  font-weight:650;
}
body.hp-redesign .hero-cat:hover{border-color:#c7d2fe;background:#f8faff}

/* Logo tile grid */
body.hp-redesign .brand-strip{background:transparent;border:0;padding:28px 0 8px}
body.hp-redesign .brand-strip h2{text-align:center;margin-bottom:16px}
body.hp-redesign .brand-strip-list{
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:12px;
  max-width:1100px;
  margin:0 auto;
}
body.hp-redesign .brand-strip-list a{
  flex-direction:column;
  gap:8px;
  min-height:96px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 1px 2px rgba(17,24,39,.04);
  font-size:12px;
  padding:14px 8px 12px;
}
body.hp-redesign .brand-strip-list a:hover{
  border-color:#d1d5db;
  box-shadow:0 8px 20px rgba(17,24,39,.06);
}
body.hp-redesign .brand-icon{width:40px;height:40px;flex-basis:40px}

/* Compact new offers: fresh-strip + new-this-week */
body.hp-redesign .fresh-strip{
  background:transparent;
  border:0;
  padding:8px 0 4px;
  font-size:13px;
  color:var(--muted);
}
body.hp-redesign .fresh-strip .new-offer-label{
  display:block;
  font-size:12px;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  margin:10px 0 8px;
}
body.hp-redesign .new-offer-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
body.hp-redesign .new-offer-chips a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:4px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--ink);
  text-decoration:none;
  font-size:13px;
  font-weight:650;
}

body.hp-redesign #new-this-week{
  margin-top:12px;
  padding-bottom:8px;
}
body.hp-redesign #new-this-week .section-title{margin-bottom:12px}
body.hp-redesign #new-this-week .link-card-list{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:4px 2px 12px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
body.hp-redesign #new-this-week .link-card-list li{
  min-width:240px;
  max-width:260px;
  flex:0 0 240px;
  scroll-snap-align:start;
  list-style:none;
}
body.hp-redesign #new-this-week .link-card-list a{
  height:100%;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 1px 2px rgba(17,24,39,.04);
}

/* Cards: bold visitor saving, one visual primary button */
body.hp-redesign .card{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 1px 2px rgba(17,24,39,.04);
  border-radius:20px;
  padding:22px 22px 20px;
}
body.hp-redesign .card .card-benefit{
  background:transparent;
  border:0;
  padding:4px 0 2px;
  gap:4px;
}
body.hp-redesign .card .card-benefit span{display:block;width:100%;margin:0}
body.hp-redesign .card .card-benefit strong{
  display:block;
  width:100%;
  font-size:1.35rem;
  letter-spacing:-.03em;
  font-weight:800;
  color:var(--ink);
  line-height:1.2;
}
body.hp-redesign .card .btns .btn.ghost{
  background:transparent;
  border:0;
  color:var(--muted);
  box-shadow:none;
  padding:8px 4px;
  font-weight:650;
}
body.hp-redesign .card .btns .btn.primary{
  border-radius:12px;
  min-height:44px;
  font-weight:750;
  background:#111827;
  border-color:#111827;
  color:#fff;
}
body.hp-redesign .card .btns .btn.primary:hover{background:#1f2937}

/* Dim only programs that are explicitly ended, claimed, expired, or dead.
   Limited inventory and bot-wall / blocked link checks must stay full color. */
body.hp-redesign .card.is-ended,
body.hp-redesign .card:has(.status-claimed){
  opacity:1;
  filter:grayscale(.6);
  box-shadow:none;
  background:#fafafa;
}
body.hp-redesign .card.is-ended .btn.primary,
body.hp-redesign .card:has(.status-claimed) .btn.primary{
  background:#e5e7eb;
  border-color:#e5e7eb;
  color:#4b5563;
}

/* Hide the second search field visually; keep it in the DOM for search.js */
body.hp-redesign #finder > .finder-label,
body.hp-redesign #finder > .search-field,
body.hp-redesign #finder > #search-results-lower{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}
body.hp-redesign #finder{position:relative;background:transparent;border:0;box-shadow:none;padding:8px 0 16px;margin:8px 0 18px}
body.hp-redesign #finder .pills{justify-content:flex-start}

/* Whitespace and quieter mid-page blocks */
body.hp-redesign .get-free,
body.hp-redesign .editor-picks,
body.hp-redesign .featured-offer{background:transparent}
body.hp-redesign .section-title,
body.hp-redesign .editor-picks h2,
body.hp-redesign .get-free h2{letter-spacing:-.03em}
body.hp-redesign .signup{border-radius:20px}

@media (max-width:980px){
  body.hp-redesign .brand-strip-list{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:760px){
  body.hp-redesign .hero-in{padding:40px 18px 18px}
  body.hp-redesign .hero h1{font-size:32px;max-width:12em}
  body.hp-redesign .brand-strip-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.hp-redesign .brand-strip-list a{min-height:88px}
  body.hp-redesign .nav-in{height:auto;min-height:52px}
}
@media (max-width:420px){
  body.hp-redesign .brand-strip-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}


body.hp-redesign .hero-cats{margin:4px auto 0;padding-bottom:0}
body.hp-redesign .brand-strip{padding-top:20px}
body.hp-redesign .hero-finder{max-width:680px;box-sizing:border-box}
body.hp-redesign .hero-finder .search-field{width:100%;min-width:0;box-sizing:border-box}
body.hp-redesign .hero-finder .finder-input{width:100%;min-width:0;flex:1;text-overflow:ellipsis}
body.hp-redesign .new-offer-chips{
  flex-wrap:nowrap;
  overflow-x:auto;
  padding-bottom:8px;
  font-size:0; /* hide commas and "and" between links */
  -webkit-overflow-scrolling:touch;
}
body.hp-redesign .new-offer-chips a{font-size:13px;flex:0 0 auto}
body.hp-redesign .fresh-note{
  display:block;
  margin:10px 0 0;
  font-size:13px;
  color:var(--muted);
  max-width:62em;
}

/* 2026-11-16: center the homepage hero, clamp the headline, keep the nav logo visible. */
body.hp-redesign .hero{
  background:
    radial-gradient(900px 440px at 50% -20%, rgba(99,102,241,.18), transparent 62%),
    radial-gradient(720px 380px at 100% 0%, rgba(37,99,235,.12), transparent 58%),
    radial-gradient(620px 300px at 0% 100%, rgba(14,165,233,.10), transparent 55%),
    #f5f7ff;
  border-bottom:1px solid var(--line);
}
body.hp-redesign .hero-in{
  max-width:760px;
  margin:0 auto;
  padding:clamp(40px,6vw,64px) 24px clamp(28px,4vw,40px);
  text-align:center;
}
body.hp-redesign .hero .pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 16px;
}
body.hp-redesign .hero h1{
  font-size:clamp(28px, calc(3.2vw + 10px), 40px);
  line-height:1.18;
  letter-spacing:-.035em;
  max-width:10.5em;
  margin:0 auto 14px;
  text-align:center;
  font-weight:750;
  color:var(--ink);
}
body.hp-redesign .hero .lede,
body.hp-redesign .hero .answer{
  max-width:36em;
  margin:0 auto 22px;
  text-align:center;
  font-size:17px;
  line-height:1.55;
  color:var(--muted);
}
body.hp-redesign .hero-ctas-quiet{
  display:flex;
  justify-content:center;
  gap:18px;
  margin:0 auto 20px;
}
body.hp-redesign .hero-in>p[style]{
  display:block;
  margin:0 auto 16px;
  text-align:center;
}
body.hp-redesign .hero-finder{
  margin:0 auto;
  max-width:640px;
}
body.hp-redesign .logo,
body.hp-redesign .logo-mark{flex-shrink:0}
body.hp-redesign .logo{
  color:#111827;
  z-index:2;
  font-size:15px;
  gap:8px;
}
body.hp-redesign .logo-mark{
  width:28px;
  height:28px;
  border-radius:8px;
  font-size:11px;
  color:#fff !important;
  background:linear-gradient(135deg,#4f46e5,#2563eb) !important;
}
@media (max-width:1180px){
  body.hp-redesign .nav-toggle{
    display:inline-flex !important;
    align-items:center;
    margin-left:auto;
  }
  body.hp-redesign .nav-in{position:relative;height:56px}
  body.hp-redesign .nav-links{
    display:none;
    position:absolute;
    left:0;right:0;top:100%;
    background:#fff;
    border-bottom:1px solid var(--line);
    padding:12px 18px 18px;
    flex-direction:column;
    align-items:stretch;
    gap:4px;
    z-index:6;
    flex-wrap:nowrap;
    width:auto;
  }
  body.hp-redesign .nav-links.is-open{display:flex}
  body.hp-redesign .nav-links a{margin:0;padding:12px 10px;min-height:44px}
}
@media (max-width:760px){
  body.hp-redesign .hero-in{padding:36px 18px 24px}
  body.hp-redesign .hero h1{font-size:clamp(26px,8vw,32px);max-width:11em}
  body.hp-redesign .nav-in{height:56px}
}


/* Nov 16 audit: ended cards muted by grayscale and background only, text stays WCAG AA */
body.hp-redesign .card.is-ended .eyebrow,body.hp-redesign .card.is-ended .card-copy,body.hp-redesign .card.is-ended .card-code,body.hp-redesign .card.is-ended .card-benefit span,body.hp-redesign .card.is-ended .status-label,body.hp-redesign .card.is-ended .btn.ghost{color:#374151!important}
body.hp-redesign .card.is-ended .btn.primary{color:#111827!important}
body .foot .logo.light,body .foot .logo{color:#fff}

/* 2026-11-16 hero1: polished homepage hero. Light-only; CSS-only visuals, no new images. */
body.hp-redesign .hero.hero-v2{position:relative;overflow:hidden;isolation:isolate;border-bottom:1px solid #e6e9f2;
  background:radial-gradient(60% 70% at 50% -10%,rgba(99,102,241,.20),transparent 70%),radial-gradient(40% 55% at 95% 10%,rgba(56,189,248,.18),transparent 70%),radial-gradient(38% 50% at 4% 85%,rgba(236,72,153,.10),transparent 70%),radial-gradient(35% 45% at 80% 100%,rgba(16,185,129,.10),transparent 70%),linear-gradient(180deg,#f7f8ff 0%,#fbfcff 100%)}
body.hp-redesign .hero-v2 .hero-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:linear-gradient(rgba(79,70,229,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(79,70,229,.07) 1px,transparent 1px);background-size:44px 44px;
  -webkit-mask-image:radial-gradient(ellipse 70% 65% at 50% 35%,#000 20%,transparent 75%);mask-image:radial-gradient(ellipse 70% 65% at 50% 35%,#000 20%,transparent 75%)}
body.hp-redesign .hero-v2 .hero-in{position:relative;max-width:780px;padding:clamp(44px,7vw,84px) 24px clamp(36px,5vw,56px);text-align:center}
body.hp-redesign .hero-v2 .pill{display:inline-flex;align-items:center;gap:10px;margin:0 auto 20px;padding:7px 14px 7px 12px;background:rgba(255,255,255,.85);border:1px solid #e0e4f2;border-radius:999px;box-shadow:0 4px 14px -6px rgba(30,41,99,.18);color:#475569;font-size:13.5px;font-weight:600;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
body.hp-redesign .hero-v2 .pill strong{color:#0f172a;font-weight:800}
body.hp-redesign .hero-v2 .pill .dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.18)}
body.hp-redesign .hero-v2 .pill-sep{width:4px;height:4px;border-radius:50%;background:#cbd5e1}
body.hp-redesign .hero-v2 h1{font-size:clamp(34px,calc(4vw + 14px),60px);line-height:1.05;letter-spacing:-.045em;font-weight:800;max-width:13em;margin:0 auto 18px;color:#0b1224}
body.hp-redesign .hero-v2 .hero-accent{color:#4338ca}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  body.hp-redesign .hero-v2 .hero-accent{background:linear-gradient(100deg,#4f46e5 10%,#2563eb 55%,#0891b2 95%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;padding-bottom:.06em}}
body.hp-redesign .hero-v2 .lede{max-width:34em;margin:0 auto 30px;font-size:clamp(16px,1.2vw + 10px,19px);line-height:1.55;color:#475569}
body.hp-redesign .hero-v2 .hero-finder{position:relative;max-width:660px;margin:0 auto;padding:8px;border-radius:20px;border:1px solid #dfe3f0;background:#fff;box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 24px 50px -22px rgba(49,46,129,.35),0 4px 12px -4px rgba(15,23,42,.08);transition:box-shadow .2s ease,border-color .2s ease}
body.hp-redesign .hero-v2 .hero-finder:focus-within{border-color:#a5b4fc;box-shadow:0 0 0 4px rgba(99,102,241,.16),0 24px 50px -22px rgba(49,46,129,.4)}
body.hp-redesign .hero-v2 .hero-finder .search-field{display:flex;align-items:center;gap:10px;padding:0 6px 0 14px}
body.hp-redesign .hero-v2 .search-icon{flex:none;color:#6366f1}
body.hp-redesign .hero-v2 .hero-finder .finder-input{height:56px;padding:0 70px 0 0;font-size:17px;color:#0f172a;background:transparent;border:0;outline:none;box-shadow:none}
body.hp-redesign .hero-v2 .hero-finder .finder-input::placeholder{color:#64748b}
body.hp-redesign .hero-v2 .hero-finder .search-results{position:absolute;left:0;right:0;top:calc(100% + 8px);margin:0;z-index:30;border-radius:16px;box-shadow:0 24px 48px -16px rgba(15,23,42,.28)}
body.hp-redesign .hero-v2 .hero-chips{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:18px auto 0;max-width:660px}
body.hp-redesign .hero-v2 .hero-chips-label{font-size:13px;font-weight:700;color:#64748b;margin-right:2px}
body.hp-redesign .hero-v2 .hero-chips a{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.9);border:1px solid #e2e6f0;color:#1e293b;font-size:14px;font-weight:600;text-decoration:none;transition:border-color .15s,background .15s,transform .15s}
body.hp-redesign .hero-v2 .hero-chips a:hover{border-color:#a5b4fc;background:#eef2ff;color:#3730a3;transform:translateY(-1px)}
body.hp-redesign .hero-v2 .hero-ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:30px auto 0}
body.hp-redesign .hero-v2 .hero-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 24px;border-radius:14px;font-size:16px;font-weight:700;text-decoration:none;transition:transform .15s,box-shadow .15s,background .15s}
body.hp-redesign .hero-v2 .hero-btn-primary{color:#fff;background:linear-gradient(135deg,#4f46e5,#2563eb);box-shadow:0 12px 24px -10px rgba(79,70,229,.6)}
body.hp-redesign .hero-v2 .hero-btn-primary:hover{transform:translateY(-1px);box-shadow:0 16px 28px -10px rgba(79,70,229,.65);color:#fff}
body.hp-redesign .hero-v2 .hero-btn-secondary{color:#1e293b;background:#fff;border:1px solid #dbe0ec;box-shadow:0 4px 12px -6px rgba(15,23,42,.12)}
body.hp-redesign .hero-v2 .hero-btn-secondary:hover{border-color:#a5b4fc;color:#3730a3}
body.hp-redesign .hero-v2 .hero-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;list-style:none;margin:26px auto 0;padding:0;color:#475569;font-size:14px;font-weight:600}
body.hp-redesign .hero-v2 .hero-trust li{display:inline-flex;align-items:center;gap:7px;margin:0}
body.hp-redesign .hero-v2 .hero-trust svg{flex:none;width:18px;height:18px;padding:3px;border-radius:50%;background:#dcfce7;color:#15803d}
body.hp-redesign .hero-v2 .hero-guides{margin:16px 0 0;font-size:14px}
body.hp-redesign .hero-v2 .hero-guides a{color:#4338ca;font-weight:600;text-decoration:none}
body.hp-redesign .hero-v2 .hero-guides a:hover{text-decoration:underline}
/* Floating real program logos (decorative, desktop only). */
body.hp-redesign .hero-v2 .hero-float{display:none}
@media (min-width:1100px){
  body.hp-redesign .hero-v2 .hero-float{display:block;position:absolute;top:0;bottom:0;width:220px;pointer-events:none;z-index:0}
  body.hp-redesign .hero-v2 .hero-float-l{left:max(16px,calc(50% - 620px))}
  body.hp-redesign .hero-v2 .hero-float-r{right:max(16px,calc(50% - 620px))}
  body.hp-redesign .hero-v2 .hero-tile{position:absolute;display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#fff;border:1px solid #e6e9f3;box-shadow:0 18px 36px -18px rgba(30,41,99,.35),0 2px 6px rgba(15,23,42,.05);animation:brl-float 7s ease-in-out infinite}
  body.hp-redesign .hero-v2 .hero-tile img{width:36px;height:36px;object-fit:contain;border-radius:8px}
  body.hp-redesign .hero-v2 .hero-float-l .hero-tile-1{top:18%;left:58%;transform:rotate(-8deg)}
  body.hp-redesign .hero-v2 .hero-float-l .hero-tile-2{top:44%;left:6%;transform:rotate(6deg);animation-delay:-2s;width:72px;height:72px}
  body.hp-redesign .hero-v2 .hero-float-l .hero-tile-3{top:72%;left:52%;transform:rotate(-4deg);animation-delay:-4s}
  body.hp-redesign .hero-v2 .hero-float-r .hero-tile-1{top:16%;right:56%;transform:rotate(7deg);animation-delay:-1s}
  body.hp-redesign .hero-v2 .hero-float-r .hero-tile-2{top:42%;right:6%;transform:rotate(-6deg);animation-delay:-3s;width:72px;height:72px}
  body.hp-redesign .hero-v2 .hero-float-r .hero-tile-3{top:70%;right:50%;transform:rotate(5deg);animation-delay:-5s}
}
@keyframes brl-float{0%,100%{translate:0 0}50%{translate:0 -10px}}
@media (prefers-reduced-motion:reduce){body.hp-redesign .hero-v2 .hero-tile{animation:none}}
@media (max-width:760px){
  body.hp-redesign .hero-v2 .hero-in{padding:36px 18px 32px}
  body.hp-redesign .hero-v2 h1{font-size:clamp(32px,9.4vw,40px);margin-bottom:14px}
  body.hp-redesign .hero-v2 .lede{margin-bottom:22px}
  body.hp-redesign .hero-v2 .hero-finder{padding:6px;border-radius:18px}
  body.hp-redesign .hero-v2 .hero-finder .finder-input{height:52px;font-size:16px}
  body.hp-redesign .hero-v2 .hero-chips{gap:6px;margin-top:14px}
  body.hp-redesign .hero-v2 .hero-chips-label{flex-basis:100%;margin:0 0 2px}
  body.hp-redesign .hero-v2 .hero-chips a{min-height:36px;padding:6px 12px;font-size:13.5px}
  body.hp-redesign .hero-v2 .hero-ctas{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
  body.hp-redesign .hero-v2 .hero-btn{min-height:48px;padding:12px 10px;font-size:15px}
  body.hp-redesign .hero-v2 .hero-trust{gap:8px 14px;font-size:13px;margin-top:20px}
}
body.hp-redesign .hero-v2 .hero-btn-arrow{margin-left:8px;transition:transform .15s}
body.hp-redesign .hero-v2 .hero-btn-primary:hover .hero-btn-arrow{transform:translateX(3px)}
body.hp-redesign .hero-v2 .hero-finder .finder-input{padding-right:8px}
body.hp-redesign .hero-v2 .search-field:has(.search-clear:not([hidden])) .finder-input{padding-right:72px}
@media (max-width:760px){body.hp-redesign .hero-v2 .hero-ctas{grid-template-columns:1fr;max-width:340px}}


/* Growth pass Nov 16, 2026: ending-soon strip, offer labels, no-purchase filter */
.ending-soon{
  padding:22px 0 8px;
  border-bottom:1px solid var(--line,#e5e7eb);
}
.ending-soon-list{
  list-style:none;
  display:grid;
  gap:12px;
  margin:14px 0 0;
  padding:0;
}
@media (min-width:720px){
  .ending-soon-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
}
.ending-soon-card{
  display:flex;
  gap:14px;
  align-items:center;
  padding:14px 16px;
  border:1px solid #e2e6ee;
  background:#fff;
  box-shadow:0 1px 3px rgba(16,24,40,.06);
  border-radius:16px;
  text-decoration:none;
  color:inherit;
}
.ending-soon-card strong{display:block;font-size:16px}
.ending-soon-card span{display:block;font-size:13px;color:#334155;margin-top:2px}
.ending-soon-date{
  flex:0 0 auto;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
  border-radius:999px;
  padding:6px 10px;
}
.offer-labels{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:8px 0 0;
  padding:0;
  list-style:none;
}
.offer-label{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 9px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  line-height:1.3;
}
.offer-label-age18{background:#fee2e2;color:#991b1b}
.offer-label-sweeps{background:#ede9fe;color:#5b21b6}
.offer-label-purchase{background:#e2e8f0;color:#334155}
.offer-label-nopurchase{background:#dcfce7;color:#166534}
.offer-label-unverified{background:#fef3c7;color:#92400e}
.card.is-age-restricted,
.card.is-sweeps,
.card.is-nopurchase:not(.is-age-restricted):not(.is-sweeps){
  /* Pills carry age/purchase labels; no one-off accent stripe */
  box-shadow:0 1px 2px rgba(17,24,39,.04);
}
.no-purchase-note{
  font-size:13px;
  color:#334155;
  margin:8px 0 0;
}
body.is-filter-nopurchase .cat-group[data-group]:not(.has-nopurchase){
  /* hidden via existing group hidden attr in JS */
}


/* Growth pass: five top-pick cards */
body .editor-picks .pick-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
@media(max-width:760px){body .editor-picks .pick-grid{grid-template-columns:1fr}}


/* 2026-11-16 night: logo letter fallback, full category rows, compact new offers, centered pill */
body .card .badge,
body .offer-brand,
body .brand-icon,
.logo-fallback{
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
}
body .card .badge-letter,
body .brand-icon .badge-letter,
.logo-fallback::before{
  font-weight:800;
  line-height:1;
}
.logo-fallback{
  flex:none;
  width:40px;
  height:40px;
  border-radius:11px;
  background:#fff;
  box-shadow:0 0 0 1px rgba(15,23,42,.08);
  color:#22324a;
}
.logo-fallback::before{
  content:attr(data-letter);
  font-size:16px;
}
.logo-fallback.has-image::before{opacity:0}
.logo-fallback img,
body .card .badge img,
body .brand-icon img,
body .offer-brand img{
  position:absolute;inset:0;margin:auto;
  width:80%;height:80%;object-fit:contain;
  opacity:0;
}
body .card .badge.has-image img,
body .brand-icon.has-image img,
body .offer-brand.has-image img,
.logo-fallback.has-image img{opacity:1}
body .card .badge.has-image .badge-letter,
body .brand-icon.has-image .badge-letter{opacity:0}

body.hp-redesign .hero-v2 .hero-in{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
body.hp-redesign .hero-v2 .pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  margin-left:auto;
  margin-right:auto;
  width:auto;
  max-width:100%;
}
body.hp-redesign .hero-v2 .hero-finder{align-self:stretch;width:100%;max-width:660px}

/* One complete preview row; auto-fit stretches leftover cards if JS is off */
body.hp-redesign .cat-group > .cards,
body.hp-redesign details.cat-more > .cards,
body .cat-group > .cards,
body details.cat-more > .cards{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap:16px;
  align-items:stretch;
}

/* Compact single-row new offers */
body.hp-redesign .new-week{
  margin:8px auto 8px;
  padding:10px 0 4px;
}
body.hp-redesign .new-week-row{
  display:flex;
  align-items:center;
  gap:12px 16px;
  min-height:0;
}
body.hp-redesign .new-week .section-title,
body.hp-redesign .new-week h2{
  flex:none;
  margin:0;
  font-size:15px;
  white-space:nowrap;
}
body.hp-redesign .new-week-chips{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
  overflow-x:auto;
  min-width:0;
  flex:1;
  scrollbar-width:thin;
}
body.hp-redesign .new-week-chips li{flex:none;margin:0}
body.hp-redesign .new-week-chips a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px 6px 6px;
  border:1px solid #e2e8f0;
  border-radius:999px;
  background:#fff;
  text-decoration:none;
  color:#16243a;
  font-size:13px;
  font-weight:650;
  white-space:nowrap;
  min-height:40px;
}
body.hp-redesign .new-week-chips img,
body.hp-redesign .new-week-chips .logo-fallback{
  width:24px;height:24px;border-radius:7px;
}
body.hp-redesign .new-week-chips .link-card-body,
body.hp-redesign .new-week-chips .link-card-chip,
body.hp-redesign .new-week-chips .link-card-go,
body.hp-redesign .new-week p{display:none}
@media(max-width:640px){
  body.hp-redesign .new-week-row{flex-wrap:wrap}
}


/* Logos visible by default; letter shows only if the image fails */
body .card .badge img,
body .brand-icon img,
body .offer-brand img,
.logo-fallback img{
  opacity:1 !important;
}
body .card .badge.has-fallback img,
body .brand-icon.has-fallback img,
body .offer-brand.has-fallback img,
.logo-fallback.has-fallback img{
  opacity:0 !important;
}
body .card .badge.has-image .badge-letter,
body .brand-icon.has-image .badge-letter,
.logo-fallback.has-image::before{opacity:0}
body .card .badge.has-fallback .badge-letter,
body .brand-icon.has-fallback .badge-letter,
.logo-fallback.has-fallback::before,
body .card .badge:not(.has-image):not(.has-fallback) .badge-letter{opacity:1}


/* 2026-11-16 night: equal card structure, no odd accent stripes, aligned actions */
body .card.is-age-restricted,
body .card.is-sweeps,
body .card.is-nopurchase,
body.hp-redesign .card.is-age-restricted,
body.hp-redesign .card.is-sweeps,
body.hp-redesign .card.is-nopurchase,
body .card.is-nopurchase:not(.is-age-restricted):not(.is-sweeps){
  box-shadow:0 1px 2px rgba(17,24,39,.04);
}
body .card:before,
body.hp-redesign .card:before{
  display:none !important;
}
body .card,
body.hp-redesign .card{
  display:flex;
  flex-direction:column;
  height:100%;
  min-width:0;
}
body .card h2,
body .card h3,
body.hp-redesign .card h2,
body.hp-redesign .card h3{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  line-height:1.3;
  max-height:2.6em;
}
body .card .card-benefit strong,
body.hp-redesign .card .card-benefit strong{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  line-height:1.25;
  max-height:2.5em;
}
body .card .offer-labels,
body.hp-redesign .card .offer-labels{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:6px 0 0;
  padding:0;
  list-style:none;
  min-height:26px;
  order:0;
}
body .card .card-copy,
body.hp-redesign .card .card-copy{
  display:-webkit-box !important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4 !important;
  overflow:hidden !important;
  max-height:6.8em !important;
  line-height:1.7;
  flex:1 1 auto;
  margin:0;
}
body .card .card-code,
body.hp-redesign .card .card-code{
  min-height:1.5em;
  margin:0;
  line-height:1.5;
}
body .card .card-code.is-link-only{
  font-family:inherit;
  font-weight:600;
  color:var(--muted,#52617a);
  font-size:13px;
}
body .card .btns,
body.hp-redesign .card .btns{
  margin-top:auto;
  padding-top:10px;
  width:100%;
}
body .card .btns.compact,
body.hp-redesign .card .btns.compact,
body .card .btns.compact.has-code,
body.hp-redesign .card .btns.compact.has-code{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
  gap:8px;
  flex-wrap:unset;
}
body .card .btns.compact .btn,
body.hp-redesign .card .btns.compact .btn{
  width:100%;
  min-width:0;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-sizing:border-box;
}
body .card .btns.compact .btn.primary,
body .card .btns.compact a.btn.primary,
body.hp-redesign .card .btns.compact .btn.primary,
body.hp-redesign .card .btns.compact a.btn.primary{
  grid-column:1/-1;
  width:100%;
  white-space:normal;
}
body .card .btns.compact .btn.primary + .btn:last-child,
body .card .btns.compact .btn.primary + a.btn:last-child,
body.hp-redesign .card .btns.compact .btn.primary + .btn:last-child,
body.hp-redesign .card .btns.compact .btn.primary + a.btn:last-child{
  grid-column:1/-1;
}
body .card .more,
body.hp-redesign .card .more{
  display:flex;
  align-items:center;
  min-height:44px;
  margin-top:0;
  padding-top:0;
}


/* 2026-11-16 audit: contrast fixes (AA) */
.ending-soon-date,
body.hp-redesign .ending-soon-date,
ul.ending-soon-list .ending-soon-date{
  color:#1d4ed8 !important;
}
section.official-terms-summary p.fine,
.official-terms-summary .fine,
.panel.official-terms-summary p.fine{
  color:#334155 !important;
}

/* 2026-11-17 cards1: shorter, airier homepage offer cards (max 4 per row) */
body.hp-redesign .cat-group > .cards,
body.hp-redesign details.cat-more > .cards,
body .cat-group > .cards,
body details.cat-more > .cards{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
}
@media (max-width:1199px){
  body.hp-redesign .cat-group > .cards,body.hp-redesign details.cat-more > .cards,
  body .cat-group > .cards,body details.cat-more > .cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
}
@media (max-width:860px){
  body.hp-redesign .cat-group > .cards,body.hp-redesign details.cat-more > .cards,
  body .cat-group > .cards,body details.cat-more > .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
}
@media (max-width:600px){
  body.hp-redesign .cat-group > .cards,body.hp-redesign details.cat-more > .cards,
  body .cat-group > .cards,body details.cat-more > .cards{grid-template-columns:1fr;gap:14px}
}
body.hp-redesign .card{padding:22px 22px 16px;gap:10px}
body.hp-redesign .card .card-top{gap:12px}
body.hp-redesign .card .card-benefit{padding:0}
body.hp-redesign .card .card-benefit strong{font-size:1.18rem;line-height:1.25;max-height:2.5em}
body .card .offer-labels,
body.hp-redesign .card .offer-labels{flex-wrap:nowrap;overflow:hidden;min-height:0;margin:0;gap:5px}
body.hp-redesign .card .offer-labels li,
body.hp-redesign .card .offer-labels .offer-label{white-space:nowrap;flex:none}
body .card .card-copy,
body.hp-redesign .card .card-copy{
  -webkit-line-clamp:2 !important;
  line-height:1.5;
  max-height:3em !important;
  flex:0 0 auto;
  font-size:14px;
}
body.hp-redesign .card .card-code{font-size:13px;min-height:0}
body.hp-redesign .card .invite-state{margin:0;padding:6px 10px;font-size:12.5px;line-height:1.35;gap:6px}
body.hp-redesign .card .invite-state svg{width:14px;height:14px;flex:none}
body .card .btns.compact,
body.hp-redesign .card .btns.compact,
body .card .btns.compact.has-code,
body.hp-redesign .card .btns.compact.has-code{
  margin-top:auto;
  padding-top:6px;
  display:flex !important;
  flex-wrap:wrap;
  gap:2px 6px;
}
body .card .btns.compact .btn.primary,
body.hp-redesign .card .btns.compact .btn.primary,
body.hp-redesign .card .btns.compact a.btn.primary{flex:1 0 100%;margin-bottom:2px}
body .card .btns.compact .btn.ghost,
body.hp-redesign .card .btns.compact .btn.ghost{flex:1 1 0;width:auto;min-height:36px;padding:4px;font-size:13px}
body .card .more,
body.hp-redesign .card .more{min-height:28px;font-size:12.5px;font-weight:600;color:var(--muted,#52617a)}
@media (max-width:600px){
  body .card .btns.compact .btn.ghost,body.hp-redesign .card .btns.compact .btn.ghost{min-height:44px}
  body .card .more,body.hp-redesign .card .more{min-height:40px}
}
body.hp-redesign .card .offer-labels .offer-label:last-child{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
