@font-face {
  font-family: Bungee;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/bungee-400.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/outfit.woff2") format("woff2");
}

:root {
  --ink: #14101c;
  --paper: #fff7ea;
  --sun: #ffb703;
  --coral: #ff4d6d;
  --mint: #3dfff3;
  --violet: #7c5cff;
  --card: #1d1730;
  --muted: #c9c0d8;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Outfit, sans-serif;
  color: var(--paper);
  background:
    radial-gradient(circle at 10% -10%, #3b1d6e 0, transparent 35%),
    radial-gradient(circle at 110% 10%, #7a1e3a 0, transparent 32%),
    var(--ink);
}
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--sun); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 4vw;
}
.logo { display: flex; gap: .8rem; align-items: center; color: var(--paper); }
.logo-mark {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--coral); color: var(--ink);
  border-radius: .8rem; transform: rotate(-6deg);
}
.logo-mark svg { width: 1.7rem; height: 1.7rem; overflow: visible; }
.logo-bell {
  transform-origin: 50% 18%;
  animation: logo-ring 1.7s ease-in-out 1;
}
@keyframes logo-ring {
  0%, 70%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(16deg); }
  16% { transform: rotate(-14deg); }
  24% { transform: rotate(10deg); }
  32% { transform: rotate(-6deg); }
  40% { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-bell { animation: none; }
}
.logo small { display: block; color: var(--muted); font-size: .8rem; }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav a { color: var(--paper); font-weight: 700; }
.nav a.is-active { color: var(--sun); }
.header-search { display: flex; gap: .4rem; }
.header-search input, .search-form input, form input[type="email"], form input[type="search"] {
  border: 0; border-radius: 999px; padding: .7rem 1rem; min-width: 16rem;
  background: #2a2340; color: var(--paper);
}
.header-search button, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; padding: .75rem 1.2rem;
  background: var(--sun); color: var(--ink); font-weight: 800; cursor: pointer;
}
.btn-ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px #fff3; }

.hero, .page-intro, .section, .subscribe-page, .archive, .bundle-detail { padding: 2rem 4vw; }
.hero { padding-top: 3rem; max-width: 70rem; }
.about-copy { max-width: 46rem; display: grid; gap: 1rem; }
.about-copy p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.how-grid, .category-grid { display: grid; gap: 1.2rem; }
.how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how-card, .category-tile {
  background: var(--card);
  border-radius: 1.2rem;
  padding: 1.25rem 1.3rem 1.4rem;
  box-shadow: 8px 8px 0 #0006;
}
.how-card .step { margin: 0; font-family: Bungee, sans-serif; color: var(--sun); font-size: 1.35rem; }
.how-card h3, .category-tile h3 { margin: .45rem 0 .5rem; font-size: 1.15rem; }
.how-card p, .category-tile p { margin: 0; color: var(--muted); }
.category-tile { color: var(--paper); display: grid; align-content: start; gap: .35rem; }
.category-tile:hover { color: var(--paper); transform: translate(-2px, -2px); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; color: var(--mint); font-weight: 800; }
h1, h2, h3 { font-family: Bungee, sans-serif; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 16ch; }
.lede { font-size: 1.25rem; max-width: 42rem; color: var(--muted); }
.hero-actions, .detail-meta, .card-meta { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.price-range { font-weight: 800; color: var(--sun); }
.msrp { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.2rem; }
.item-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.bundle-card, .item-card, .subscribe-card {
  background: var(--card); border-radius: 1.2rem; overflow: hidden;
  box-shadow: 8px 8px 0 #0006;
}
.card-media {
  min-height: 10rem; display: flex; justify-content: space-between; align-items: start;
  padding: .8rem; background: #2d2450 center/cover no-repeat; color: var(--paper);
}
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-body p { color: var(--muted); }
.chip { border-radius: 999px; padding: .25rem .7rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; background: var(--violet); color: white; }
.chip-books { background: var(--coral); }
.chip-software { background: #00b4d8; color: var(--ink); }
.countdown { background: #0008; border-radius: 999px; padding: .25rem .6rem; font-size: .8rem; }
.bundle-card.is-archive { opacity: .72; }

.subscribe-page { max-width: 36rem; padding-bottom: 4rem; }
.subscribe-card { padding: 1.4rem 1.5rem 1.6rem; }
.subscribe-card form, .subscribe-card fieldset { display: grid; gap: .9rem; border: 0; padding: 0; }
.subscribe-card label { display: grid; gap: .4rem; font-weight: 700; }
.switch-list { gap: .7rem; }
.switch-list legend { font-weight: 800; margin-bottom: .2rem; }
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-weight: 700;
}
.switch-track {
  position: relative;
  flex-shrink: 0;
  width: 3rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #3a3358;
  box-shadow: inset 0 0 0 2px #fff2;
  transition: background .15s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: .2rem;
  left: .2rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--paper);
  transition: transform .15s ease;
}
.switch:has(input:checked) .switch-track { background: var(--mint); }
.switch:has(input:checked) .switch-track::after { transform: translateX(1.3rem); }
.switch:has(input:focus-visible) .switch-track { outline: 2px solid var(--sun); outline-offset: 2px; }
.flash { background: #163d2c; padding: .8rem 1rem; border-radius: .8rem; }
.validation-summary { background: #4a1520; padding: .8rem 1rem; border-radius: .8rem; color: var(--coral); }
.validation-summary ul { margin: 0; padding-left: 1.1rem; }
.hint { color: var(--muted); font-size: .9rem; }

.detail-hero {
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #221a38 center/cover no-repeat;
  border-radius: 1.5rem;
  overflow: hidden;
}
.detail-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(transparent, #0d0a14 78%);
  padding: 6rem 2rem 1.75rem;
}
.detail-hero-copy h1,
.detail-hero-copy p { margin: 0; }
.detail-hero-copy .detail-meta { width: 100%; }
.detail-hero-copy .btn { flex-shrink: 0; }
.item-card { display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem; padding: .8rem; }
.item-card img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: .7rem; background: #2a2340; }
.item-description { color: var(--muted); margin: .4rem 0 0; }
.item-description.is-collapsed .desc-full { display: none; }
.item-description:not(.is-collapsed) .desc-short { display: none; }
.see-more {
  display: inline;
  margin-left: .15rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mint);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.see-more:hover { color: var(--sun); }
.muted { color: var(--muted); }
.archive { margin: 0 4vw 3rem; }
.search-form { display: flex; gap: .6rem; margin-top: 1rem; }

.subscribe-cta {
  display: flex;
  gap: 1.5rem 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 1rem 4vw 0;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(120deg, #2a1744, #3a1028);
  border-radius: 1.2rem;
  box-shadow: 8px 8px 0 #0006;
}
.subscribe-cta-copy { max-width: 40rem; display: grid; gap: .45rem; }
.subscribe-cta-copy h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.1rem); max-width: 18ch; }
.subscribe-cta-copy p { margin: 0; color: var(--muted); }
.subscribe-cta .btn { flex-shrink: 0; }

.site-footer { padding: 2rem 4vw 3rem; color: var(--muted); border-top: 1px solid #fff1; }
.footer-links { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; }
.legal-page { padding: 2rem 4vw 4rem; max-width: 48rem; }
.legal-page h1 { max-width: none; font-size: clamp(1.8rem, 4vw, 3rem); }
.legal-body { color: var(--muted); }
.legal-body h2 { color: var(--paper); font-size: 1.15rem; margin: 2rem 0 .6rem; }
.legal-body h3 { color: var(--paper); font-family: Outfit, sans-serif; font-size: 1rem; margin: 1.2rem 0 .4rem; }
.legal-body p, .legal-body li { line-height: 1.65; }
.legal-body p { margin: 0 0 1rem; }
.legal-body ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal-body code { font-size: .9em; color: var(--sun); }
.cookie-notice {
  position: fixed;
  z-index: 20;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 1.2rem;
  background: var(--card);
  border-radius: 1.2rem;
  box-shadow: 8px 8px 0 #0006;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; color: var(--muted); max-width: 42rem; }
.cookie-notice .btn { flex-shrink: 0; }

@media (max-width: 1100px) {
  .item-grid, .how-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr; }
  .header-search input { min-width: 0; width: 100%; }
  .item-grid, .how-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .item-grid, .how-grid, .category-grid { grid-template-columns: 1fr; }
}
