/* Demand-led landing pages (web/templates/landing.js). Layout from the 24 Nov 2026 conversion redesign, with
   readable sizes (body text 13px+, small print 12px+), no sideways scroll on phones, store table as cards on
   phones, and the first offers inside the first phone screen. Loaded only by landing pages. */
.lp-convert{padding-bottom:30px}
.lp-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(245px,.55fr);gap:28px;align-items:center;padding:34px 0 27px}
.lp-hero-copy h1{font-size:clamp(34px,4.3vw,52px);line-height:1.06;letter-spacing:-2px;max-width:760px;margin:13px 0 12px}
.lp-hero-copy>p{font-size:16px;line-height:1.65;color:var(--muted);max-width:680px;margin:0}
.lp-trust{display:flex;flex-wrap:wrap;gap:9px 18px;margin:17px 0 21px;color:#52685d;font-size:13px;font-weight:700}
.lp-primary{display:inline-flex;align-items:center;gap:16px;background:var(--green);color:white;border-radius:10px;padding:14px 20px;font-size:15px;font-weight:800;text-decoration:none;box-shadow:0 5px 14px #173f3520}
.lp-primary:hover{background:var(--green2);color:white;transform:translateY(-1px)}
.lp-primary span{font-size:18px}
.lp-hero-proof{background:#173f35;color:#fff;border-radius:16px;padding:22px 23px;box-shadow:0 14px 30px #173f3520}
.lp-proof-label{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#c9dbd1;font-weight:800}
.lp-proof-number{font-size:52px;line-height:1.05;font-weight:800;letter-spacing:-2px;margin-top:9px}
.lp-proof-caption{font-size:14px;color:#d8e4dd}
.lp-proof-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #ffffff25;margin-top:18px;padding-top:15px}
.lp-proof-stats b,.lp-proof-stats span{display:block}
.lp-proof-stats b{font-size:22px}.lp-proof-stats span{font-size:12px;color:#c9dbd1}
.lp-proof-note{font-size:12px;color:#c9dbd1;margin-top:16px}
.lp-jumps{display:flex;gap:8px;overflow-x:auto;padding:12px 0 16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);scrollbar-width:none}
.lp-jumps::-webkit-scrollbar{display:none}
.lp-jumps a{white-space:nowrap;text-decoration:none;border:1px solid var(--line);background:#fffefa;border-radius:30px;padding:9px 15px;font-size:13px;font-weight:800;color:#526057}
.lp-jumps a:hover{border-color:var(--green);color:var(--green)}
.lp-section{margin-top:31px}
.lp-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:15px}
.lp-heading h2{font-size:26px;letter-spacing:-.8px;margin:4px 0 0}
.lp-heading p{font-size:14px;color:var(--muted);margin:5px 0 0}
.lp-deal-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.lp-deal-grid .coupon{padding:16px;border-radius:13px}
.lp-deal-grid .discount{font-size:28px;margin-top:14px}
.lp-deal-grid .coupon h3{font-size:15px;line-height:1.35;min-height:40px}
.lp-deal-grid .condition{font-size:13px;min-height:34px}
.lp-deal-grid .get{font-size:14px;padding:11px 16px}
.lp-tablewrap{border:1px solid var(--line);border-radius:13px;background:#fffefa;overflow:hidden}
.lp-table{width:100%;border-collapse:collapse;font-size:15px}
.lp-table th,.lp-table td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.lp-table th{font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);background:#f6f6f0}
.lp-table tr:last-child td{border-bottom:0}
.lp-store{display:flex;align-items:center;gap:10px;font-weight:800;color:inherit;text-decoration:none}
.lp-store .brandlogo{width:36px;height:36px;flex:none}
.lp-term{display:block;font-size:13px;color:#4b5a52;line-height:1.5}
.lp-see{font-size:13px;color:var(--green);font-weight:700;text-decoration:none}
.lp-see:hover{text-decoration:underline}
.lp-shop{display:inline-block;white-space:nowrap;background:var(--green);color:#fff;border-radius:9px;padding:9px 14px;font-size:14px;font-weight:800;text-decoration:none}
.lp-shop:hover{background:var(--green2);color:#fff}
.lp-note{font-size:13px;color:var(--muted);margin-top:9px}
.lp-offers-shell{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:25px;align-items:start;margin-top:34px}
.lp-offers-main{min-width:0}
.lp-offers-main .az{margin-top:0}
.lp-offers-main .filters{flex-wrap:wrap}
.lp-sidebar{position:sticky;top:18px}
.lp-sidebar .sidecard{padding:18px}
.lp-guide{margin-top:35px}
.lp-tips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.lp-tip{padding:16px;border:1px solid var(--line);border-radius:14px;background:#fffefa}
.lp-tip h3{margin:0 0 6px;font-size:16px}
.lp-tip p{margin:0;font-size:14px;line-height:1.65;color:#374151}
@media(max-width:900px){.lp-hero{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.lp-offers-shell{grid-template-columns:1fr}.lp-sidebar{position:static}.lp-deal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Phones: compact hero so the first offers show on the first screen; the store table becomes one card per store */
@media(max-width:640px){
  .lp-hero{grid-template-columns:1fr;gap:14px;padding:18px 0 16px}
  .lp-hero-copy h1{font-size:32px;letter-spacing:-1.2px;margin:10px 0 8px}
  .lp-hero-copy>p{font-size:15px}
  .lp-trust{font-size:12px;gap:6px 12px;margin:12px 0 0}
  .lp-primary{display:none}
  .lp-hero-proof{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;padding:12px 16px;border-radius:12px}
  .lp-proof-label,.lp-proof-stats,.lp-proof-note{display:none}
  .lp-proof-number{font-size:28px;margin:0;letter-spacing:-1px}
  .lp-proof-caption{font-size:14px}
  .lp-heading{align-items:flex-start;flex-direction:column}
  .lp-heading h2{font-size:22px}
  .lp-deal-grid{grid-template-columns:1fr}
  .lp-deal-grid .coupon{display:block}
  .lp-tips{grid-template-columns:1fr}
  .lp-offers-shell{margin-top:25px}
  .lp-table thead{display:none}
  .lp-table,.lp-table tbody,.lp-table tr,.lp-table td{display:block;width:100%}
  .lp-table tr{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:14px;border-bottom:1px solid var(--line)}
  .lp-table tr:last-child{border-bottom:0}
  .lp-table td{border:0;padding:0}
  .lp-table td.lp-c-store{grid-column:1}
  .lp-table td.lp-c-best{grid-column:2;grid-row:1;align-self:center;font-weight:800;text-align:right}
  .lp-table td.lp-c-count{display:none}
  .lp-table td.lp-c-terms{grid-column:1 / -1}
  .lp-table td.lp-c-shop{grid-column:1 / -1}
  .lp-shop{display:block;text-align:center;margin-top:6px}
  .lp-c-terms .lp-see{display:none}
  .lp-jumps{display:none}
  .lp-section{margin-top:20px}
  #best-deals .lp-heading .kicker,#best-deals .lp-heading p,#best-deals .lp-heading .link{display:none}
  .lp-hero-copy>p{font-size:15px;line-height:1.55}
}
.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}
.lp-tg{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px 16px;border:1px solid #cde6f3;background:#f1f9fd;border-radius:13px;text-decoration:none;color:inherit}
.lp-tg svg{width:28px;height:28px;flex:none;fill:#229ed9}
.lp-tg span{flex:1;display:flex;flex-direction:column;gap:2px}
.lp-tg b{font-size:15px}.lp-tg small{font-size:13px;color:var(--muted)}
.lp-tg i{font-style:normal;font-weight:800;color:#1b7fb0;font-size:14px;white-space:nowrap}
.lp-tg:hover{border-color:#229ed9}
/* Product strip (web/templates/landing.js productStrip): real products on sale from the stores' product feeds.
   A scrolling row on every screen size; cards are links out through /api/out/. No "ad-" class names (ad blockers). */
.lp-p-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(178px,206px);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 12px;scrollbar-width:thin}
.lp-p-card{scroll-snap-align:start;display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:13px;background:#fffefa;padding:10px 10px 12px;text-decoration:none;color:inherit;transition:border-color .15s,transform .15s}
.lp-p-card:hover{border-color:var(--green);transform:translateY(-1px)}
.lp-p-img{position:relative;display:block;aspect-ratio:1/1;border-radius:9px;background:#fff;overflow:hidden;margin-bottom:6px}
.lp-p-img img{width:100%;height:100%;object-fit:contain;display:block}
.lp-p-off{position:absolute;top:7px;left:7px;background:#b42318;color:#fff;font-size:12px;font-weight:800;border-radius:6px;padding:2px 7px}
.lp-p-brand{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:800}
.lp-p-title{font-size:13px;line-height:1.35;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:35px}
.lp-p-price b{font-size:18px;color:#173f35}.lp-p-price s{font-size:13px;color:var(--muted);margin-left:4px}
.lp-p-store{font-size:12px;color:var(--muted)}
.lp-p-ends{font-size:12px;font-weight:800;color:#b42318}
.lp-p-go{margin-top:auto;padding-top:6px;font-size:13px;font-weight:800;color:var(--green)}
@media(max-width:620px){.lp-p-row{grid-auto-columns:minmax(150px,46%)}}
/* "More" cards at the end of the product strip: the strip is a sample, the stores have the full range */
.lp-p-more{justify-content:center;gap:8px;border-style:dashed;border-width:2px;background:#f6f6f0;text-align:left;padding:16px}
.lp-p-more b{font-size:15px;line-height:1.3}
.lp-p-more>span:not(.lp-p-go):not(.lp-p-plus){font-size:13px;color:var(--muted)}
.lp-p-plus{display:flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 10px;align-self:flex-start;border-radius:22px;background:var(--green);color:#fff;font-size:20px;font-weight:800}
.lp-p-more .lp-p-go{margin-top:6px}
/* Evergreen deals page /top-deals (web/top-deals.js): category chips, product grid, the store's code under each card */
.td-hero{padding:26px 0 8px}.td-hero h1{font-size:clamp(32px,4vw,48px);letter-spacing:-1.6px;line-height:1.08;margin:12px 0 10px}
.td-hero p{font-size:16px;line-height:1.6;color:var(--muted);max-width:760px;margin:0}
.td-filter{position:sticky;top:0;z-index:5;display:flex;gap:8px;overflow-x:auto;padding:12px 0;margin-top:14px;background:var(--bg,#f4efe6);border-bottom:1px solid var(--line);scrollbar-width:none}
.td-filter::-webkit-scrollbar{display:none}
/* Tab row with scroll arrows (a mouse can't swipe it): the wrapper carries the sticky bar, the arrows sit on its edges */
.td-tabwrap{position:sticky;top:0;z-index:5;margin-top:14px;background:var(--bg,#f4efe6);border-bottom:1px solid var(--line)}
.td-tabwrap .td-filter{position:static;margin-top:0;border-bottom:0;background:none;scroll-behavior:smooth}
.td-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:#fffefa;box-shadow:0 2px 10px rgba(23,63,53,.18);font:inherit;font-size:24px;font-weight:700;line-height:1;color:#173f35;cursor:pointer;padding:0 0 3px}
.td-arrow:hover{background:#173f35;color:#fff}
.td-arrow[hidden]{display:none}
.td-arrow-l{left:-4px}.td-arrow-r{right:-4px}
.td-tabwrap::before,.td-tabwrap::after{content:"";position:absolute;top:0;bottom:0;width:40px;pointer-events:none;z-index:1;opacity:0;transition:opacity .15s}
.td-tabwrap::before{left:0;background:linear-gradient(90deg,var(--bg,#f4efe6) 30%,transparent)}
.td-tabwrap::after{right:0;background:linear-gradient(270deg,var(--bg,#f4efe6) 30%,transparent)}
.td-tabwrap.can-l::before,.td-tabwrap.can-r::after{opacity:1}
.td-filter button{white-space:nowrap;border:1px solid var(--line);background:#fffefa;border-radius:30px;padding:9px 14px;font:inherit;font-size:13px;font-weight:800;color:#526057;cursor:pointer}
.td-filter button span{color:var(--muted);font-weight:700;margin-left:3px}
.td-filter button.on{background:var(--green);border-color:var(--green);color:#fff}.td-filter button.on span{color:#d8e4dd}
.td-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.td-card{position:relative}.td-card[hidden]{display:none}
.td-link{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit}
.td-with{font-size:12px;font-weight:800;color:#0a7d38}
.td-deal{display:flex;flex-direction:column;gap:4px;border-top:1px dashed var(--line);margin-top:6px;padding-top:8px}
.td-code{align-self:flex-start;font:inherit;font-size:13px;font-weight:800;letter-spacing:.04em;border:1.5px dashed var(--green);background:#eef5f0;color:#173f35;border-radius:7px;padding:4px 9px;cursor:pointer}
.td-code.copied{background:var(--green);color:#fff}
.td-auto{font-size:12px;font-weight:800;color:#173f35}
.td-dtext{font-size:12px;color:var(--muted);line-height:1.35}
.td-moreb{display:block;margin:18px auto 0;border:1px solid var(--green);background:#fffefa;color:var(--green);border-radius:10px;padding:12px 22px;font:inherit;font-weight:800;cursor:pointer}
.td-moreb[hidden]{display:none}
@media(max-width:620px){.td-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.td-card{padding:8px 8px 10px}.lp-p-title{font-size:12.5px}}
/* /top-deals search, popular chips, tools (sort + filter chips), status line, card extras */
.td-search{position:relative;display:flex;gap:8px;max-width:720px;margin-top:18px}
.td-search input{flex:1;min-width:0;font:inherit;font-size:16px;padding:14px 16px;border:2px solid var(--green);border-radius:12px;background:#fff}
.td-search button[type=submit]{font:inherit;font-weight:800;border:0;background:var(--green);color:#fff;border-radius:12px;padding:0 20px;cursor:pointer}
.td-sugg{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:20;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #173f3522;overflow:hidden}
.td-sugg button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:none;font:inherit;font-size:14px;padding:10px 14px;cursor:pointer}
.td-sugg button:hover,.td-sugg button.on{background:#eef5f0}
.td-sugg small{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--green)}
.td-sugg span{margin-left:auto;color:var(--muted);font-size:12px}
.td-trend{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px;font-size:13px;color:var(--muted)}
.td-trend button{border:1px solid var(--line);background:#fffefa;border-radius:20px;padding:5px 11px;font:inherit;font-size:13px;font-weight:700;color:#173f35;cursor:pointer}
.td-tools{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;padding:10px 0}
.td-tools[hidden]{display:none}
.td-tools label{font-size:13px;font-weight:800;color:#526057}.td-tools select{font:inherit;font-size:13px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;margin-left:4px}
.td-chips{display:flex;flex-wrap:wrap;gap:6px}
.td-chips button{border:1px solid var(--line);background:#fffefa;border-radius:20px;padding:7px 12px;font:inherit;font-size:13px;font-weight:700;color:#526057;cursor:pointer}
.td-chips button.on{background:#173f35;color:#fff;border-color:#173f35}
.td-status{font-size:13px;color:var(--muted);margin:10px 0}
.td-best{position:absolute;top:7px;right:7px;background:#173f35;color:#fff;font-size:11px;font-weight:800;border-radius:6px;padding:2px 7px}
.td-save{font-size:12px;font-weight:800;color:#b42318}
.td-dlabel{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--green)}
.td-excl{font-size:11px;color:var(--muted)}
.td-dcond{font-size:11px;color:var(--muted);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.td-checked{font-size:11px;color:var(--muted)}
.td-store{font-size:11px;color:var(--muted);line-height:1.35;margin:4px 0 0}
.td-store a{color:inherit;text-decoration:underline}
.td-agents h2{font-size:15px;margin:18px 0 4px}
.td-agents code{font-size:12px}
#td-grid[aria-busy=true]{opacity:.55}
@media(max-width:620px){.td-search input{font-size:15px;padding:12px}.td-search button[type=submit]{padding:0 14px}}
/* YouTube review link on a product card (backend/src/youtube.js) */
.td-yt{display:flex;flex-direction:column;gap:1px;margin-top:6px;padding:6px 8px;border-radius:8px;background:#fff1f0;color:#b42318;font-size:12.5px;font-weight:800;text-decoration:none}
.td-yt small{font-size:11px;font-weight:600;color:var(--muted)}
.td-yt:hover{background:#ffe2df}
