/* ==========================================================================
   Dealsindiscount — front end
   Palette taken from the logo. The logo coral (#FF6855) only carries white text
   at 2.85:1, which fails WCAG AA, so it is kept for badges and dark backgrounds
   while interactive elements use a darkened coral that clears 4.5:1.
   The coupon card is the hero element; the last-verified date is the thing that
   makes this site different from every other coupon page, so it is never hidden.
   ========================================================================== */

:root {
  --brand: #FF6855;                                   /* logo coral, large blocks only */
  --p1: #D33E29;   --p1-dark: #B83324;  --p1-soft: #FFEDE9;
  --s1: #0E8C7D;   --s2: #40B25B;       --s3: #875BF7;   --danger: #D7054F;
  --n1: #FFFFFF;   --n2: #FAFAFB;       --n3: #F5F6F7;   --n4: #EBECEF;
  --n5: #DFE0E4;   --n7: #B2B6BF;       --n11: #798090;  --n13: #5B6477;
  --n17: #222E48;  --n18: #13203B;      --n19: #071431;
  --radius: 14px;  --radius-sm: 9px;    --radius-lg: 22px;
  --shadow: 0 6px 30px rgba(7, 20, 49, .08);
  --shadow-lg: 0 14px 44px rgba(7, 20, 49, .14);
  --font: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: .22s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--n17);
  background: var(--n2);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-weight: 600; color: var(--n19); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--p1-dark); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--p1); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--p1); outline-offset: 2px; border-radius: 4px; }

.container-xl { max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.section { padding: 56px 0; }
.section-sm { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { color: var(--n11); margin: 4px 0 0; max-width: 62ch; }
.muted { color: var(--n11); }
.small { font-size: .875rem; }

/* ---------- buttons ---------- */
.btn-cs, .cmn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--p1); color: #fff; border: 0; cursor: pointer;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  transition: background var(--ease), transform var(--ease);
}
.btn-cs:hover, .cmn-btn:hover { background: var(--p1-dark); color: #fff; }
.btn-cs:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--n17); border: 1.5px solid var(--n5); }
.btn-outline:hover { background: var(--n3); color: var(--n19); border-color: var(--n7); }
.btn-orange { background: var(--s1); }
.btn-orange:hover { background: #e87f27; }
.btn-sm { padding: 8px 15px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--n4); position: sticky; top: 0; z-index: 60; }
.topbar { background: var(--n19); color: #cbd3e0; font-size: .8rem; }
.topbar .container-xl { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.header-main { display: flex; align-items: center; gap: 26px; padding-block: 14px; }
.brand-mark { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-mark img { display: block; height: 44px; width: auto; border-radius: 6px; }
@media (max-width: 520px) { .brand-mark img { height: 36px; } }

.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a {
  padding: 9px 14px; border-radius: var(--radius-sm); color: var(--n15, #404a60);
  font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: var(--n3); color: var(--n19); }
.main-nav a.active { background: var(--p1-soft); color: var(--p1-dark); }

.header-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.header-search input {
  width: 100%; padding: 10px 40px 10px 15px; border: 1.5px solid var(--n5);
  border-radius: 999px; font-size: .92rem; font-family: inherit; background: var(--n2);
}
.header-search input:focus { outline: none; border-color: var(--p1); background: #fff; }
.header-search button { position: absolute; right: 5px; top: 4px; border: 0; background: none; color: var(--n11); padding: 6px 10px; cursor: pointer; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--n5); border-radius: 9px; padding: 8px 11px; cursor: pointer; }

@media (max-width: 991px) {
  .header-main { flex-wrap: wrap; gap: 12px; }
  .nav-toggle { display: block; margin-left: auto; order: 2; }
  .header-search { order: 3; max-width: none; flex-basis: 100%; }
  .main-nav { order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; display: none; margin-left: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 14px; }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--n19) 0%, #10294f 55%, var(--p1-dark) 100%);
  color: #fff; padding: 64px 0 74px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -80px -120px auto; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(28,162,252,.35), transparent 68%); border-radius: 50%;
}
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: 14px; }
.hero p.lead { color: #c8d5e6; font-size: 1.08rem; max-width: 58ch; margin-bottom: 26px; }
.hero-search { display: flex; gap: 10px; max-width: 620px; position: relative; z-index: 2; }
.hero-search input {
  flex: 1; padding: 15px 20px; border: 0; border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit;
}
.hero-stats { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-stats div { line-height: 1.3; }
.hero-stats b { display: block; font-size: 1.7rem; color: #fff; font-weight: 700; }
.hero-stats span { color: #9fb3cd; font-size: .88rem; }

/* ---------- answer box (AEO) ---------- */
.answer-box {
  background: #fff; border: 1px solid var(--n4); border-left: 4px solid var(--s2);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.answer-box .answer-kicker { font-size: .78rem; color: var(--s2); font-weight: 600; margin-bottom: 5px; }
.answer-box p { margin: 0; font-size: 1.03rem; color: var(--n17); line-height: 1.62; }
.answer-box p + p { margin-top: .7rem; }

/* ---------- coupon card ---------- */
.coupon-card {
  display: grid; grid-template-columns: 108px 1fr 190px; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--n4); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px; position: relative;
  transition: box-shadow var(--ease), border-color var(--ease);
}
.coupon-card:hover { box-shadow: var(--shadow); border-color: var(--n5); }
.coupon-card.is-exclusive { border-color: #ffd9b3; }

.coupon-badge {
  display: grid; place-items: center; text-align: center; height: 88px; border-radius: var(--radius-sm);
  background: var(--p1-soft); color: var(--p1-dark); font-weight: 700; font-size: 1.55rem; line-height: 1;
}
.coupon-badge span { display: block; font-size: .62rem; letter-spacing: .09em; font-weight: 600; margin-top: 4px; }
.coupon-badge.is-deal { background: #FFF4EC; color: #B3682B; font-size: 1.05rem; }
.coupon-badge img { width: 62px; height: auto; border-radius: 6px; }

.coupon-body h3 { font-size: 1.06rem; margin: 0 0 6px; }
.coupon-body h3 a { color: var(--n19); }
.coupon-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .8rem; color: var(--n11); align-items: center; }
.coupon-terms { font-size: .84rem; color: var(--n11); margin: 7px 0 0; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; background: var(--n3); color: var(--n13);
}
.tag-verified { background: #E9F7ED; color: #2E7D46; }
.tag-exclusive { background: #FFF4EC; color: #B3682B; }
.tag-ship { background: var(--p1-soft); color: var(--p1-dark); }
.tag-expiring { background: #FDEBF1; color: #B00340; }

/* reveal button: half solid, half dashed = the "tear off the code" idea */
.coupon-action { text-align: right; }
.reveal-btn {
  position: relative; display: block; width: 100%; border: 0; cursor: pointer; overflow: hidden;
  background: var(--p1); color: #fff; font-weight: 700; font-size: .95rem;
  padding: 13px 16px; border-radius: var(--radius-sm); font-family: inherit;
  text-align: center; text-decoration: none; transition: background var(--ease);
}
.reveal-btn:hover, .reveal-btn:focus-visible { color: #fff; text-decoration: none; }
.reveal-btn:hover { background: var(--p1-dark); }
.reveal-btn .peek {
  position: absolute; right: 0; top: 0; bottom: 0; width: 46px;
  background: rgba(255, 255, 255, .22); display: grid; place-items: center;
  font-size: .7rem; letter-spacing: .04em; border-left: 2px dashed rgba(255, 255, 255, .55);
}
.reveal-btn.is-deal { background: var(--s1); }
.reveal-btn.is-deal:hover { background: #e87f27; }

.code-box {
  display: none; align-items: center; justify-content: space-between; gap: 8px;
  border: 2px dashed var(--p1); background: var(--p1-soft); border-radius: var(--radius-sm);
  padding: 11px 14px; font-weight: 700; letter-spacing: .06em; color: var(--p1-dark);
  cursor: pointer; width: 100%; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.code-box.show { display: flex; }
.code-box small { font-family: var(--font); font-weight: 600; letter-spacing: 0; font-size: .7rem; color: var(--n11); }
.coupon-card.revealed .reveal-btn { display: none; }

.coupon-vote { margin-top: 8px; font-size: .76rem; color: var(--n11); }
.coupon-vote button { background: none; border: 0; color: var(--p1-dark); cursor: pointer; font-size: .76rem; padding: 0 3px; font-family: inherit; }

@media (max-width: 767px) {
  .coupon-card { grid-template-columns: 78px 1fr; gap: 14px; }
  .coupon-badge { height: 66px; font-size: 1.2rem; }
  .coupon-action { grid-column: 1 / -1; text-align: left; }
}

/* ---------- brand + category cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }

.brand-card {
  background: #fff; border: 1px solid var(--n4); border-radius: var(--radius);
  padding: 18px 16px; text-align: center; display: block;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--n5); }
.brand-card .logo-wrap {
  height: 62px; display: grid; place-items: center; margin-bottom: 12px;
}
.brand-card img { max-height: 56px; width: auto; max-width: 100%; border-radius: 8px; }
.brand-card h3 { font-size: .95rem; margin: 0 0 3px; color: var(--n19); }
.brand-card p { font-size: .78rem; color: var(--n11); margin: 0; }

.cat-card {
  display: flex; gap: 14px; align-items: flex-start; background: #fff;
  border: 1px solid var(--n4); border-radius: var(--radius); padding: 18px;
  transition: box-shadow var(--ease), border-color var(--ease);
}
.cat-card:hover { box-shadow: var(--shadow); border-color: var(--n5); }
.cat-card .ico {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--p1-soft); color: var(--p1-dark); font-size: 1.3rem;
}
.cat-card h3 { font-size: 1rem; margin: 0 0 3px; }
.cat-card p { font-size: .83rem; color: var(--n11); margin: 0 0 6px; }
.cat-card .count { font-size: .76rem; color: var(--n11); font-weight: 600; }

/* ---------- brand page header ---------- */
.brand-hero { background: #fff; border-bottom: 1px solid var(--n4); padding: 30px 0; }
.brand-hero-inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.brand-hero .logo-box {
  width: 128px; height: 92px; flex: 0 0 128px; border: 1px solid var(--n4); border-radius: var(--radius);
  display: grid; place-items: center; background: #fff; padding: 10px; overflow: hidden;
}
.brand-hero .logo-box img { max-height: 72px; max-width: 108px; border-radius: 8px; }
.brand-hero h1 { margin-bottom: 6px; }
.brand-facts { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .86rem; color: var(--n11); }
.brand-facts b { color: var(--n17); }
.brand-banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; }
.brand-banner img { display: block; width: 100%; }

/* ---------- A-Z bar ---------- */
.az-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.az-bar a {
  min-width: 38px; text-align: center; padding: 8px 6px; border: 1px solid var(--n4);
  border-radius: var(--radius-sm); background: #fff; font-weight: 600; font-size: .85rem; color: var(--n13);
}
.az-bar a:hover { border-color: var(--p1); color: var(--p1-dark); }
.az-bar a.active { background: var(--p1); border-color: var(--p1); color: #fff; }

/* ---------- FAQ / find answers ---------- */
.faq-item { background: #fff; border: 1px solid var(--n4); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 16px 50px 16px 20px; font-weight: 600; font-size: 1rem; color: var(--n19);
  position: relative; font-family: inherit; line-height: 1.45;
}
.faq-q::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 400; color: var(--p1-dark); transition: transform var(--ease);
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { display: none; padding: 0 20px 18px; color: var(--n13); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- prose / blog ---------- */
.prose { font-size: 1.03rem; line-height: 1.75; color: var(--n15, #404a60); max-width: 74ch; }
.prose h2 { margin: 2.1rem 0 .8rem; }
.prose h3 { margin: 1.5rem 0 .5rem; font-size: 1.1rem; color: var(--n18); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .post-cta { margin: 1.8rem 0; }
.prose .post-cta a { text-decoration: none; }
.table-wrap { overflow-x: auto; margin-bottom: 1.4rem; }
.post-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.post-table th, .post-table td { padding: 11px 14px; border-bottom: 1px solid var(--n4); text-align: left; }
.post-table th { background: var(--n3); font-weight: 600; color: var(--n17); font-size: .85rem; }

.post-card { background: #fff; border: 1px solid var(--n4); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--ease); }
.post-card:hover { box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/6; background: var(--n3); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.02rem; margin-bottom: 8px; line-height: 1.4; }
.post-card p { font-size: .87rem; color: var(--n11); margin-bottom: 12px; flex: 1; }
.post-card .meta { font-size: .76rem; color: var(--n11); display: flex; gap: 12px; }

/* ---------- misc ---------- */
.breadcrumbs { font-size: .82rem; color: var(--n11); padding: 14px 0; }
.breadcrumbs a { color: var(--n11); }
.breadcrumbs a:hover { color: var(--p1-dark); }
.breadcrumbs span { margin: 0 7px; color: var(--n7); }

.panel { background: #fff; border: 1px solid var(--n4); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.2rem; }
.side-panel { background: #fff; border: 1px solid var(--n4); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.side-panel h3 { font-size: .98rem; margin-bottom: 12px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: 7px 0; border-bottom: 1px solid var(--n3); font-size: .9rem; }
.side-list li:last-child { border-bottom: 0; }

.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 991px) { .layout-2col { grid-template-columns: 1fr; } }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; }
.alert-success { background: #E9F7ED; color: #24693C; border: 1px solid #BFE5CB; }
.alert-danger  { background: #FDEBF1; color: #97033A; border: 1px solid #F7C4D6; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 9px 14px; border: 1px solid var(--n4); border-radius: var(--radius-sm);
  background: #fff; font-size: .88rem; color: var(--n13); font-weight: 500;
}
.pagination .current { background: var(--p1); border-color: var(--p1); color: #fff; }

.newsletter { background: linear-gradient(135deg, var(--n19), #16305a); color: #fff; border-radius: var(--radius-lg); padding: 38px 34px; }
.newsletter h2 { color: #fff; }
.newsletter p { color: #b9c8dd; max-width: 52ch; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin-top: 18px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 220px; padding: 13px 17px; border: 0; border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; }

.disclosure { font-size: .8rem; color: var(--n11); background: var(--n3); border-radius: var(--radius-sm); padding: 11px 15px; margin-bottom: 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--n19); color: #9fb0c8; padding: 52px 0 0; margin-top: 60px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #9fb0c8; font-size: .89rem; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 20px 0; font-size: .82rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--n17); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--n5); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--n17);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--p1); }
.field .hint { font-size: .78rem; color: var(--n11); margin-top: 5px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(140%);
  background: var(--n19); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-size: .9rem; z-index: 999; transition: transform var(--ease); box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
