/* v3 2026-11-24 — coupon-directory sites, after aardvarkbookclub.com. Colours: body style vars (build.py PAL). */
:root { --ink: #141414; --brand: #141414; --tint: #f1f1ef; --spark: #d6202a; --indigo: #141414; --orange: #f9a220; --gut: 16px; --max: 1240px; --rad: 28px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.5 "Source Sans 3", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, .logo, .foot-logo, .count b, .steps .n, .cp-offer, .stats b {
  font-family: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif; font-weight: 800; letter-spacing: -0.015em; }
.wrap { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* stacked rounded panels */
.panel { position: relative; overflow: hidden; background: var(--bg); border-radius: var(--rad); margin: 0 6px; padding: 56px 0 80px; }
.panel + .panel { margin-top: calc(var(--rad) * -1); }
.blob { position: absolute; z-index: 0; pointer-events: none; }

/* nav */
.nav { position: fixed; z-index: 50; top: 10px; left: 12px; right: 12px; max-width: 1220px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.logo { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 22px; letter-spacing: -0.015em; text-decoration: none; background: #fff; padding: 5px 16px 5px 6px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.mark { width: 36px; height: 36px; flex: none; transform: rotate(-12deg); }
.word-t em { font-style: normal; color: var(--acc); }
.foot-logo { display: flex; align-items: center; gap: 12px; }
.foot-logo .mark { width: 1.1em; height: 1.1em; }
.foot-logo .word-t em { color: var(--spark); }
.foot-logo .tld { color: #8a8a85; margin-left: -12px; }
.links { display: none; gap: 6px; }
.links a { text-decoration: none; font-size: 14px; color: var(--ink); background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 9px 14px; border-radius: 999px; }
.navcta { flex: none; text-decoration: none; font-size: 14px; font-weight: 700; background: var(--acc); color: #fff; padding: 10px 14px; border-radius: 8px; }

/* buttons: label block + arrow block */
.btn { display: inline-flex; gap: 2px; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1; }
.btn .l, .btn .a { display: inline-flex; align-items: center; background: var(--acc); color: var(--accText); min-height: 46px; }
.btn .l { padding: 0 18px; border-radius: 7px 0 0 7px; }
.btn .a { padding: 0 14px; border-radius: 0 7px 7px 0; background: var(--acc2); font-size: 18px; }
.btn.sm { font-size: 15px; } .btn.sm .l, .btn.sm .a { min-height: 42px; }
.btn.wide { display: flex; } .btn.wide .l { flex: 1; justify-content: center; }
.btn:hover .l, .btn:hover .a { filter: brightness(1.06); }

.pill { display: inline-block; margin: 0; padding: 6px 12px; border-radius: 999px; font-size: 15px; background: rgba(255,255,255,.75); }

/* ---------- hero (light) */
.tiles a { box-shadow: inset 0 0 0 1px #e6e5e0; }
.hero { border-radius: 0 0 var(--rad) var(--rad); padding: 86px 0 64px; }
.kick { margin-bottom: 14px; }
h1 { font-size: clamp(40px, 11vw, 92px); line-height: .98; margin: 0 0 16px; max-width: 11em; }
.sub { max-width: 34em; margin: 0 0 22px; }
.search { display: flex; align-items: center; gap: 10px; max-width: 560px; background: #fff; border-radius: 14px; padding: 0 16px; box-shadow: 0 0 0 1px #dedcd6, 0 6px 18px rgba(0,0,0,.06); }
.search svg { flex: none; width: 22px; height: 22px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 18px "Source Sans 3", sans-serif; padding: 16px 0; color: var(--ink); }
.search:focus-within { box-shadow: 0 0 0 3px var(--acc), 0 6px 18px rgba(120,80,0,.12); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 16px; max-width: 560px; }
.stats b { font-size: 20px; letter-spacing: -0.02em; margin-right: 3px; }
.note { position: absolute; z-index: 2; right: 18px; bottom: 34px; margin: 0; font: 600 21px/1 Caveat, cursive; color: var(--ink); transform: rotate(-6deg); display: none; }
.note svg { display: block; width: 44px; height: 30px; margin: 2px 0 0 30px; }

.count { display: flex; gap: 8px; margin: 0 0 18px; }
.count div { background: #fff; border-radius: 14px; padding: 8px 12px 7px; min-width: 74px; text-align: center; }
.count div:nth-child(2) { background: var(--spark); }
.count b { display: block; font-size: 38px; line-height: 1; }
.count span { font-size: 12px; }

/* ---------- coupon list */
.list-head { display: grid; gap: 16px; margin-bottom: 22px; }
h2 { font-size: clamp(34px, 9vw, 64px); line-height: 1; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; background: #fff; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; min-height: 40px; }
.chip span { font-size: 12px; background: #efeeea; border-radius: 999px; padding: 1px 7px; }
.chip { box-shadow: inset 0 0 0 1px #dedcd6; }
.chip.on { background: var(--ink); color: #fff; }
.chip.on span { background: rgba(255,255,255,.2); }

.cps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cp[hidden] { display: none; }
.cp-body { background: #fff; }
/* phone: horizontal ticket — coloured stub | cut | white body. Notches are real holes (mask), not painted dots */
.cp { position: relative; filter: drop-shadow(0 2px 6px rgba(0,0,0,.08)) drop-shadow(0 0 .5px rgba(0,0,0,.35)); --nx: 104px; }
.cp-in { position: relative; display: grid; grid-template-columns: var(--nx) 1fr; height: 100%; background: #fff; border-radius: 18px;
  -webkit-mask: radial-gradient(circle 8px at var(--nx) 0, #0000 97%, #000 100%), radial-gradient(circle 8px at var(--nx) 100%, #0000 97%, #000 100%);
  -webkit-mask-composite: source-in; mask: radial-gradient(circle 8px at var(--nx) 0, #0000 97%, #000 100%), radial-gradient(circle 8px at var(--nx) 100%, #0000 97%, #000 100%); mask-composite: intersect; }
.cp-top { background: var(--c); color: var(--ct); border-radius: 18px 0 0 18px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.cp-offer { font-size: 24px; line-height: .9; text-align: center; letter-spacing: -0.015em; }
.cp-offer small { display: block; font-size: 13px; letter-spacing: 0; margin-top: 4px; }
.cp-img img { height: 72px; width: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.22)); transform: rotate(-6deg); }
.cp-img .truck { width: 64px; height: 40px; }
.cp-cut { position: absolute; left: calc(var(--nx) - 1px); top: 12px; bottom: 12px; border-left: 2px dashed #d9d9d4; }
.cp-body { padding: 13px 14px 14px 18px; display: flex; flex-direction: column; min-width: 0; }
.cp-body .btn { margin-top: auto; }
.cp-brand { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #555; }
.cp-brand .ends { letter-spacing: 0; text-transform: none; font-size: 14px; }
.cp h3 { font-size: 18px; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 6px; }
.price { margin: 0 0 8px; font-size: 17px; }
.price s { color: #888; font-weight: 500; }
.price b { color: var(--acc); }
.price .unit { font-size: 13px; color: #555; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.tags span { font-size: 14px; padding: 3px 8px; border-radius: 999px; background: #f1f1f1; }
.tags .nocode { background: #f1f1ef; color: var(--ink); }
.nocode::before { content: "✓ "; font-weight: 800; }
.empty { background: #fff; border-radius: 14px; padding: 18px; text-align: center; }
.empty button { border: 0; background: none; text-decoration: underline; cursor: pointer; font-weight: 700; }

/* brands */
.brands h2 { margin-bottom: 18px; } .how h2 { margin-bottom: 24px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tiles a { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; text-align: center; gap: 2px; text-decoration: none; background: #fff; border-radius: 18px; padding: 10px 10px 14px; height: 100%; }
.tiles .lg { display: grid; place-items: center; width: 100%; height: 104px; border-radius: 12px; background: var(--tb); color: var(--tt); margin-bottom: 8px; overflow: hidden; }
.tiles .lg img { max-width: 82%; max-height: 84px; width: auto; height: auto; object-fit: contain; }
.tiles .word { font: 800 20px/1.1 "Libre Franklin", sans-serif; letter-spacing: -0.01em; padding: 0 8px; }
.tiles b { font-size: 16px; letter-spacing: -0.02em; line-height: 1.15; }
.tiles span { font-size: 15px; color: #555; }
.tiles .deal { color: var(--acc); font-weight: 700; }
.about { max-width: 46em; margin: 0 0 22px; }
.table h2 { margin-bottom: 18px; }

/* summary table */
.tbl { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px #e0dfda; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
caption { caption-side: bottom; text-align: left; padding: 12px 14px; font-size: 15px; font-weight: 500; color: #555; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid #eee; }
thead th { background: var(--ink); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
thead th:first-child { border-radius: 14px 0 0 0; } thead th:last-child { border-radius: 0 14px 0 0; }
tbody th { font-weight: 700; min-width: 180px; } td { white-space: nowrap; } td:last-child { white-space: normal; min-width: 180px; }

/* how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { border-radius: 18px; padding: 18px 20px 20px; background: #fff; }
.steps li, .steps li:nth-child(n) { background: #fff; box-shadow: inset 0 0 0 1px #e6e5e0; }
.steps .n { color: var(--acc); }
.crumbs { font-size: 14px; margin-bottom: 12px; } .crumbs a { text-decoration: underline; }
.steps .n { display: block; font-size: 48px; line-height: .9; }
.steps h3 { font-size: 23px; line-height: 1.1; margin: 6px 0 6px; letter-spacing: -0.015em; }
.steps p { margin: 0; }

/* faq */
.faq h2 { margin-bottom: 22px; }
.qa { max-width: 780px; display: grid; gap: 8px; }
details { background: #fff; box-shadow: inset 0 0 0 1px #e4e3de; border-radius: 10px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 15px 16px; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary i { position: relative; flex: 0 0 14px; height: 14px; margin-top: 3px; }
summary i::before, summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; }
summary i::after { transform: rotate(90deg); transition: transform .2s; }
details[open] summary i::after { transform: rotate(0); }
details p { margin: 0; padding: 0 16px 16px; }

/* footer */
.foot { color: #b5b5b0; font-size: 14px; line-height: 1.55; font-weight: 500; padding: 64px 0 46px; margin-bottom: 6px; }
.foot p { max-width: 820px; margin: 0 0 12px; }
.foot b { color: #fff; }
.foot-logo { color: #fff; font-size: clamp(36px, 9vw, 72px); line-height: 1; margin-bottom: 20px !important; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; } .foot-links a { color: #fff; }

/* ---------- tablet: vertical coupon cards, 2 across */
@media (min-width: 680px) {
  :root { --gut: 32px; --rad: 36px; }
  .cps { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .cp { --ny: 150px; }
  .cp-in { grid-template-columns: 1fr; grid-template-rows: var(--ny) 1fr;
    -webkit-mask: radial-gradient(circle 8px at 0 var(--ny), #0000 97%, #000 100%), radial-gradient(circle 8px at 100% var(--ny), #0000 97%, #000 100%);
    -webkit-mask-composite: source-in; mask: radial-gradient(circle 8px at 0 var(--ny), #0000 97%, #000 100%), radial-gradient(circle 8px at 100% var(--ny), #0000 97%, #000 100%); mask-composite: intersect; }
  .cp-top { border-radius: 18px 18px 0 0; flex-direction: row; align-items: center; padding: 16px 18px; }
  .cp-offer { font-size: 40px; text-align: left; }
  .cp-offer small { font-size: 18px; }
  .cp-img img { height: 118px; }
  .cp-img .truck { width: 90px; height: 56px; }
  .cp-cut { left: 12px; right: 12px; top: calc(var(--ny) - 1px); bottom: auto; border-left: 0; border-top: 2px dashed #d9d9d4; }
  .cp-body { padding: 16px 18px 18px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
/* desktop */
@media (min-width: 1000px) {
  :root { --gut: 48px; --rad: 44px; }
  .panel { margin: 0 10px; padding: 90px 0 120px; }
  .links { display: flex; }
  .logo { font-size: 24px; }
  .hero { padding: 130px 0 90px; }
  .sub { font-size: 18px; }
  .note { display: block; left: calc(var(--gut) + 600px); right: auto; top: auto; bottom: 18px; font-size: 28px; }
  .list-head { grid-template-columns: auto 1fr; align-items: end; gap: 24px; }
  .chips { justify-content: flex-end; }
  .cps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .cp-offer { font-size: 36px; }
  .cp-img img { height: 110px; }
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .tbl table { font-size: 15px; }
  .count b { font-size: 52px; } .count div { min-width: 96px; }
}

/* sections (11/24): one-colour B&W palette made the stacked rounded panels look odd →
   flat full-width bands, alternating white / warm grey, no overlap, no blobs below the hero */
.hero { margin: 0; }
main > section.panel { margin: 0; border-radius: 0; background: #ffffff; }
main > section.panel:nth-of-type(even) { background: #f4f2ee; }
main > section.panel .blob { display: none; }
.panel + .panel, main > section.panel:first-of-type { margin-top: 0; }
.foot { margin: 0; border-radius: var(--rad) var(--rad) 0 0; }
main > section.panel:last-of-type { padding-bottom: calc(var(--rad) + 70px); }
main > section.panel:last-of-type + * { }
.foot { margin-top: calc(var(--rad) * -1); position: relative; z-index: 2; }
main > section.panel:nth-of-type(even) details, main > section.panel:nth-of-type(even) .steps li { background: #fff; }
main > section.panel:nth-of-type(even) .tiles a { box-shadow: none; }
