/* Grabs the Deal — page layouts */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: var(--space-16) 0 var(--space-24);
  background: linear-gradient(150deg, var(--color-primary-deep) 0%, var(--color-primary-dark) 38%, var(--color-primary) 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 380px at 12% -8%, rgba(124,58,237,.55), transparent 65%),
              radial-gradient(520px 320px at 92% 105%, rgba(249,115,22,.28), transparent 65%),
              radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.2px) 0 0 / 26px 26px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-12); align-items: center; }
.hero h1 { font-size: var(--fs-2xl); line-height: 1.05; margin: 0 0 var(--space-5); letter-spacing: -.03em; }
.hero h1 .hl { color: #FDBA74; position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .12em; background: var(--color-accent); border-radius: 99px; opacity: .85; }
.hero-copy > p { font-size: var(--fs-md); color: rgba(255,255,255,.86); max-width: 48ch; margin-bottom: var(--space-8); }
.hero-search { display: flex; background: #fff; border-radius: var(--radius-full); padding: .4rem; box-shadow: var(--shadow-lg); max-width: 580px; }
.hero-search input { flex: 1; min-width: 0; border: none; background: transparent; padding: .7rem 1.2rem; font-size: var(--fs-base); color: var(--color-text); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 4px rgba(249,115,22,.45), var(--shadow-lg); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: .3rem .95rem; font-size: var(--fs-xs); font-weight: 600; border-radius: var(--radius-full); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; transition: background var(--duration-fast); }
.chip:hover { background: rgba(255,255,255,.2); }
.hero-stats { display: flex; gap: var(--space-8); list-style: none; padding: 0; margin: var(--space-8) 0 0; font-size: var(--fs-sm); color: rgba(255,255,255,.8); }
.hero-stats strong { font-family: var(--font-display); font-size: var(--fs-lg); color: #fff; margin-right: .3rem; }

.hero-art { position: relative; height: 380px; }
.ticket { position: absolute; display: flex; width: 330px; max-width: 92%; height: 108px; border-radius: 18px; background: #fff; color: var(--color-text); box-shadow: var(--shadow-lg);
  -webkit-mask: radial-gradient(circle 11px at 76% 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 76% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 11px at 76% 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 76% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.ticket-main { flex: 0 0 76%; padding: 1.1rem 1.3rem; display: flex; flex-direction: column; justify-content: center; gap: .5rem; border-right: 2px dashed #d9cff0; }
.ticket-stub { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--color-primary); }
.ticket-stub .icon { width: 30px; height: 30px; }
.ticket-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-dark); }
.ticket-code { font-family: ui-monospace, Menlo, monospace; font-weight: 800; letter-spacing: .25em; color: var(--color-primary); font-size: 1.1rem; }
.ticket-line { display: block; height: 9px; width: 85%; border-radius: 99px; background: #ece6f8; } .ticket-line.short { width: 55%; }
.ticket-a { top: 2%; left: 2%; transform: rotate(-6deg); }
.ticket-b { top: 34%; right: 0; transform: rotate(4deg); background: #FFF7ED; }
.ticket-b .ticket-stub { color: var(--color-accent-dark); }
.ticket-c { bottom: 2%; left: 10%; transform: rotate(-2deg); }
@media (max-width: 960px) {
  .hero { padding: var(--space-12) 0 var(--space-16); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero-art { height: 300px; max-width: 420px; margin-inline: auto; width: 100%; }
  .ticket { width: 290px; height: 96px; }
  .hero h1 .hl { white-space: normal; }
}
@media (max-width: 520px) { .hero-search { flex-direction: column; border-radius: var(--radius-md); gap: var(--space-2); } .hero-search .btn { width: 100%; } .hero-art { display: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--color-primary-tint), #fff); padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid var(--color-border); }
.page-hero h1 { font-size: var(--fs-xl); margin: 0 0 var(--space-2); }
.page-hero p { color: var(--color-text-muted); margin: 0; }
.breadcrumbs { font-size: var(--fs-xs); color: var(--color-text-muted); margin-bottom: var(--space-4); }
.breadcrumbs a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 .45rem; }
.store-head, .category-head { display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap; }
.store-head .badge-row { margin-top: var(--space-2); }
.lead-text { max-width: 72ch; color: var(--color-text-muted); margin: var(--space-5) 0 0; }

/* ---------- Toolbars ---------- */
.toolbar, .tab-row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-6); }
.toolbar .select { width: auto; min-width: 180px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); align-items: center; }
.filter-bar .input { flex: 1 1 220px; width: auto; } .filter-bar .select { width: auto; flex: 0 1 190px; }
.inline-search { position: relative; display: flex; gap: var(--space-2); max-width: 460px; margin-bottom: var(--space-8); }
.inline-search .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--color-text-muted); pointer-events: none; }
.inline-search input { flex: 1; min-width: 0; min-height: 44px; padding: .6rem 1rem .6rem 2.5rem; border: 1px solid #cfc9de; border-radius: var(--radius-full); }
.inline-search input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(91,33,182,.12); }
.state-404 .inline-search { justify-content: center; }

/* ---------- Featured deals ---------- */
.feature-stack { display: grid; gap: var(--space-5); }
.deal-feature { display: grid; grid-template-columns: 1.4fr .6fr; gap: var(--space-8); align-items: center; background: linear-gradient(135deg, #fff, var(--color-primary-tint)); border: 1px solid #e3d8fb; border-radius: var(--radius-lg); padding: var(--space-8); }
.deal-feature h3 { font-size: var(--fs-lg); }
.deal-feature p { color: var(--color-text-muted); }
.eyebrow-free { color: var(--color-accent-dark); font-weight: 800; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-2); }
.deal-feature-logo { display: flex; justify-content: center; }
@media (max-width: 760px) { .deal-feature { grid-template-columns: 1fr; padding: var(--space-5); } .deal-feature-logo { display: none; } }

/* ---------- Bank offers ---------- */
.bank-offers { background: linear-gradient(135deg, var(--color-primary-deep), var(--color-primary)); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8); color: #fff; box-shadow: var(--shadow-lg); }
.bank-offer-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.bank-offer-row:last-child { border-bottom: none; }

/* ---------- How it works / trust ---------- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); counter-reset: s; }
.step-item { text-align: center; }
.step-item h3 { font-size: var(--fs-base); } .step-item p { color: var(--color-text-muted); }
.step-marker { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-4); font-family: var(--font-display); font-weight: 800; font-size: var(--fs-md); box-shadow: 0 8px 20px rgba(91,33,182,.3); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.trust-item { padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
.trust-item .icon { width: 30px; height: 30px; color: var(--color-primary); margin-bottom: var(--space-3); }
.trust-item h3 { font-size: var(--fs-base); } .trust-item p { color: var(--color-text-muted); margin: 0; font-size: var(--fs-sm); }
@media (max-width: 760px) { .steps-row, .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter-panel { background: linear-gradient(135deg, #fff, var(--color-primary-tint)); border: 1px solid #e3d8fb; border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8); display: flex; justify-content: space-between; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.newsletter-panel h2 { margin: 0 0 var(--space-2); font-size: var(--fs-lg); } .newsletter-panel p { color: var(--color-text-muted); margin: 0; }
.newsletter-form { display: flex; gap: var(--space-2); flex: 1; max-width: 440px; min-width: 260px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 180px; min-height: 48px; padding: .7rem 1.1rem; border-radius: var(--radius-full); border: 1px solid #cfc9de; }
.newsletter-form input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(91,33,182,.12); }

/* ---------- Coupon detail ---------- */
.coupon-detail { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.coupon-detail-head { display: flex; gap: var(--space-5); align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--space-6); }
.coupon-detail-head h1 { font-size: var(--fs-xl); margin: var(--space-1) 0 var(--space-3); }
.coupon-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-bottom: var(--space-6); }
.detail-block { margin-top: var(--space-8); } .detail-block h2 { font-size: var(--fs-md); }
.muted-text, .muted { color: var(--color-text-muted); font-size: var(--fs-sm); }
.detail-meta { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: var(--space-6) 0 0; padding: var(--space-4) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.detail-meta dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); font-weight: 700; }
.detail-meta dd { margin: 0; font-weight: 600; } .detail-meta a { color: var(--color-primary); }
.coupon-detail .alert { margin: var(--space-8) 0 0; }
@media (max-width: 600px) { .coupon-detail { padding: var(--space-5); } .coupon-actions .btn { width: 100%; } }

/* ---------- Blog / prose ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-6); }
.post-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow var(--duration-base), transform var(--duration-base); }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-body { padding: var(--space-5); } .post-body time, .post-meta { font-size: var(--fs-xs); color: var(--color-text-muted); }
.post-body h2 { font-size: var(--fs-md); margin: var(--space-2) 0; } .post-body h2 a:hover { color: var(--color-primary); }
.read-more { color: var(--color-primary); font-weight: 700; font-size: var(--fs-sm); }
.prose { font-size: 1.05rem; line-height: 1.75; } .prose h1 { font-size: var(--fs-2xl); } .prose h2 { font-size: var(--fs-lg); margin-top: var(--space-8); }
.prose ul { padding-left: 1.3rem; } .prose li { margin-bottom: var(--space-2); } .prose a { color: var(--color-primary); text-decoration: underline; }
.prose-cover { border-radius: var(--radius-md); margin: var(--space-5) 0; width: 100%; }
@media (max-width: 760px) { .section { padding: var(--space-12) 0; } .container { padding-inline: var(--space-4); } }
