/* Home page redesign. Loaded after style.css; only touches the home page. */

/* ---------- Hero ---------- */
body[data-page="home"] .hero { overflow: hidden; }
body[data-page="home"] .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, .10) 0 2px, transparent 3px) 0 0 / 34px 34px,
    radial-gradient(420px 260px at 78% 18%, rgba(214, 46, 121, .22), transparent 65%);
}
body[data-page="home"] .hero-in { position: relative; z-index: 1; padding-top: clamp(26px, 4.5vw, 56px); padding-bottom: clamp(70px, 9vw, 104px); gap: 28px; }
.hm-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 14px; border-radius: 999px; font: 700 13px/1.3 var(--font); color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(4px); }
.hm-badge i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .28); }
body[data-page="home"] .hero h1 { font-size: clamp(34px, 5.6vw, 56px); line-height: 1.04; margin-bottom: 14px; }
.hm-free { font-style: normal; color: var(--marigold); position: relative; white-space: nowrap; }
.hm-free::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--marigold), var(--poppy)); opacity: .85; z-index: -1; transform: scaleY(.55); transform-origin: bottom; }
body[data-page="home"] .hero-sub { margin-bottom: 22px; }
body[data-page="home"] .search-hero input { min-height: 58px; border-radius: 18px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); }
body[data-page="home"] .hero .chips { margin-top: 14px; }
.hm-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 600 13.5px/1.3 var(--font); color: rgba(255, 255, 255, .86); }
.hm-trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #0b3b22; background: #4ade80; }

/* Quick convert card */
body[data-page="home"] .quick { position: relative; border-radius: 24px; padding: 22px; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .65); overflow: visible; }
body[data-page="home"] .quick::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, var(--poppy), var(--marigold), var(--peacock), var(--magenta)); }
body[data-page="home"] .quick h2 { font-size: 18px; }

/* ---------- Today strip: floats over the hero edge ---------- */
.hm-today { position: relative; z-index: 3; margin-top: -52px; padding: 0; }
.hm-stats { margin-top: 0; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-stats .stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); text-decoration: none; color: inherit; min-width: 0; }
.hm-stats .stat > div { min-width: 0; }
.hm-stats .stat i { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-style: normal; background: color-mix(in srgb, var(--k) 16%, var(--surface)); }
.hm-stats .stat b { font-size: 18px; line-height: 1.2; }
.hm-stats .stat span { display: block; font-size: 12.5px; margin-top: 1px; }
.hm-s1 { --k: #2b6bea; } .hm-s2 { --k: #14935a; } .hm-s3 { --k: #d98f00; } .hm-s4 { --k: #d62e79; }
a.hm-stats-link, .hm-stats a.stat { transition: transform .15s, border-color .15s; }
.hm-stats a.stat:hover { transform: translateY(-2px); border-color: var(--k); }
@media (max-width: 900px) { .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .hm-today { margin-top: -44px; }
  .hm-stats { gap: 8px; }
  .hm-stats .stat { padding: 11px 10px; gap: 9px; border-radius: 15px; }
  .hm-stats .stat i { width: 36px; height: 36px; font-size: 18px; border-radius: 11px; }
  .hm-stats .stat b { font-size: 15px; }
  .hm-stats .stat span { font-size: 11.5px; }
}

/* ---------- Win a gift banner ---------- */
.hm-winsec { padding-top: 22px; }
.hm-winsec .home-win { position: relative; overflow: hidden; border: 0; border-radius: 22px; padding: 18px 20px; color: #fff; background: linear-gradient(120deg, #c2410c 0%, #ea580c 55%, #f59e0b 100%); box-shadow: 0 18px 36px -20px rgba(194, 65, 12, .75); }
.hm-winsec .home-win::after { content: "🎁"; position: absolute; right: -10px; bottom: -34px; font-size: 130px; opacity: .12; transform: rotate(-14deg); pointer-events: none; }
.hm-winsec .home-win > .hw-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 30px; background: rgba(255, 255, 255, .2); }
.hm-winsec .home-win b { color: #fff; font-size: 19px; }
.hm-winsec .home-win span.hw-sub { color: #fff; opacity: .92; }
.hm-winsec .home-win .btn { background: #fff; color: #9a3412; border-color: #fff; font-weight: 800; position: relative; z-index: 1; }

/* ---------- Why strip: bold coloured cards, clearly different from the white strip above ---------- */
.hm-whysec { padding-top: 34px; }
.hm-why { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-why-i { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 20px; min-height: 168px; border-radius: 24px; color: #fff; background: linear-gradient(145deg, var(--w1), var(--w2)); box-shadow: 0 18px 30px -20px var(--w1); }
.hm-why-i:nth-child(1) { --w1: #2b2f8f; --w2: #5b50e0; }
.hm-why-i:nth-child(2) { --w1: #0e7f7e; --w2: #19b38f; }
.hm-why-i:nth-child(3) { --w1: #c2255f; --w2: #f0577f; }
.hm-why-i:nth-child(4) { --w1: #d46a0a; --w2: #f5a623; }
.hm-why-i::after { content: ""; position: absolute; right: -34px; bottom: -44px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .14); pointer-events: none; }
.hm-why-i::before { content: ""; position: absolute; right: 26px; top: -26px; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .10); pointer-events: none; }
.hm-why-i i { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; display: grid; place-items: center; font-style: normal; font-size: 27px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .45); }
.hm-why-i b { font: 800 18px/1.2 var(--font-display); color: #fff; }
.hm-why-i span { position: relative; z-index: 1; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .92); }
@media (max-width: 900px) { .hm-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .hm-why { gap: 10px; }
  .hm-why-i { min-height: 0; padding: 14px 13px 16px; border-radius: 18px; }
  .hm-why-i i { width: 40px; height: 40px; font-size: 21px; border-radius: 12px; margin-bottom: 4px; }
  .hm-why-i b { font-size: 15.5px; }
  .hm-why-i span { font-size: 12.5px; }
}

/* ---------- Section headings ---------- */
.hm-eyebrow { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; font: 800 11.5px/1.5 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
body[data-page="home"] .section-head h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.02em; }
.hm-sub { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Category cards ---------- */
body[data-page="home"] .cat-minis { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); }
body[data-page="home"] .cat-mini { position: relative; padding: 0 0 6px; overflow: hidden; border-radius: 20px; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
body[data-page="home"] .cat-mini:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 18px 34px -20px var(--c); }
body[data-page="home"] .cat-mini-head { margin: 0; padding: 14px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 20%, var(--surface)), color-mix(in srgb, var(--c) 6%, var(--surface))); border-bottom: 1px solid color-mix(in srgb, var(--c) 25%, var(--line)); }
body[data-page="home"] .cat-mini-head .s-ico { width: 42px; height: 42px; font-size: 22px; border-radius: 13px; background: var(--c); color: #fff; box-shadow: 0 8px 16px -8px var(--c); }
body[data-page="home"] .cat-mini-head h3 { font-size: 17px; }
body[data-page="home"] .cat-mini-head h3 a::after { content: ""; position: absolute; inset: 0; }
body[data-page="home"] .cat-mini ul { padding: 6px 12px 0; flex: 1; }
body[data-page="home"] .cat-mini li a { position: relative; z-index: 1; border-top: 0; border-radius: 10px; padding: 3px 8px; margin: 1px 0; transition: background .12s, color .12s; }
body[data-page="home"] .cat-mini li a:hover { background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--ink); }
body[data-page="home"] .cat-mini li a span { flex: none; width: 24px; text-align: center; }
body[data-page="home"] .cat-mini .cat-more { position: relative; z-index: 1; align-self: flex-start; margin: 6px 16px 10px; padding: 0 14px; min-height: 34px; border-radius: 999px; color: var(--c); font-weight: 800; background: color-mix(in srgb, var(--c) 12%, var(--surface)); text-decoration: none; }
body[data-page="home"] .cat-mini .cat-more:hover { background: var(--c); color: #fff; }
[data-theme="dark"] body[data-page="home"] .cat-mini .cat-more, [data-theme="dark"] .cat-mini .cat-more { filter: brightness(1.25); }
@media (max-width: 640px) {
  body[data-page="home"] .cat-minis { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="home"] .cat-mini { border-radius: 16px; }
  body[data-page="home"] .cat-mini-head { padding: 10px; gap: 8px; }
  body[data-page="home"] .cat-mini-head .s-ico { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
  body[data-page="home"] .cat-mini-head h3 { font-size: 14.5px; }
  body[data-page="home"] .cat-mini ul { padding: 4px 6px 0; }
  body[data-page="home"] .cat-mini li a { padding: 2px 4px; }
  body[data-page="home"] .cat-mini .cat-more { margin: 4px 10px 8px; font-size: 12.5px; padding: 0 11px; }
}

/* ---------- Popular tools, guides, CTA ---------- */
body[data-page="home"] .tile { border-radius: 18px; }
body[data-page="home"] .tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c, var(--brand)); }
body[data-page="home"] .tile { position: relative; }
body[data-page="home"] .cta-band { background: linear-gradient(135deg, #2b2f8f 0%, #4a2a9e 60%, #d62e79 130%); border-radius: 28px; }
[data-theme="dark"] body[data-page="home"] .cta-band { background: linear-gradient(135deg, #232870 0%, #3b2680 70%, #7a2160 130%); }
body[data-page="home"] .cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 184, 28, .18); pointer-events: none; }

@media (prefers-reduced-motion: reduce) { body[data-page="home"] .cat-mini, .hm-stats a.stat { transition: none; } body[data-page="home"] .cat-mini:hover, .hm-stats a.stat:hover { transform: none; } }

@media (max-width: 380px) {
  body[data-page="home"] .quick .tabs { flex-wrap: wrap; overflow: visible; }
  body[data-page="home"] .quick .tab { min-height: 38px; padding: 0 14px; }
}
