/* KnitzNGritz landing page */

/* Slow-drifting knit texture behind everything (transform, not background-position, so it stays cheap) */
.k-landing { background: radial-gradient(90% 60% at 80% 0%, #221D6B, transparent 70%), var(--k-night); }
.k-landing::before {
  content: ""; position: fixed; inset: -60px; z-index: -2; pointer-events: none;
  background: var(--k-knit-lilac); background-size: 22px 20px;
  animation: land-drift 40s linear infinite;
}
@keyframes land-drift { to { transform: translate3d(22px, 40px, 0); } }

/* Header */
.site-top__nav { display: flex; align-items: center; gap: 6px; }
.site-top .k-logo img { height: 32px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(28px, 6vw, 72px) 0 clamp(120px, 14vw, 170px); }
.hero__sky { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 72% 78%, rgba(255, 46, 147, .38), transparent 70%), radial-gradient(40% 40% at 20% 85%, rgba(18, 229, 200, .16), transparent 70%), linear-gradient(180deg, #0B0930 0%, var(--k-night) 42%, #33176B 80%, #0D0B33 100%); }
.hero__photo { position: absolute; inset: 0; background: url("/static/img/hero-desert.webp") 60% 70% / cover no-repeat; mix-blend-mode: luminosity; opacity: .42; }
.hero__stars {
  position: absolute; inset: 0 0 45% 0; opacity: .8;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 42%, #E9E2FF, transparent),
    radial-gradient(1.6px 1.6px at 47% 12%, #fff, transparent), radial-gradient(1px 1px at 63% 30%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 81% 9%, #E9E2FF, transparent), radial-gradient(1px 1px at 92% 38%, #fff, transparent),
    radial-gradient(1px 1px at 6% 55%, #fff, transparent), radial-gradient(1.3px 1.3px at 37% 66%, #9CFFF1, transparent);
  background-size: 340px 260px;
}
.hero__mesa { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(110px, 16vw, 220px); }
.hero__road { position: absolute; left: 0; right: 0; bottom: clamp(52px, 7vw, 84px); height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 46, 147, .8) 30%, rgba(18, 229, 200, .8) 70%, transparent); filter: blur(.5px); opacity: .6; }

.hero__inner { display: grid; grid-template-areas: "top" "machine" "rest"; gap: 8px; align-items: center; }
.hero__top { grid-area: top; }
.hero__rest { grid-area: rest; padding-top: 18px; }
.hero__machine { grid-area: machine; }
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 6px 16px 6px 8px; border-radius: 999px; background: rgba(13, 11, 51, .6); box-shadow: inset 0 0 0 1px rgba(255, 176, 31, .35); color: var(--k-lilac); font-weight: 600; font-size: var(--k-fs-sm); }
.hero__kicker-chip { font-size: 10px; }
.hero__title { font-size: clamp(2.5rem, 4.8vw, 4.6rem); line-height: 1; margin: 0; }
.hero__line:first-child { font-size: .62em; margin-bottom: .12em; color: var(--k-lilac); }
.hero__line { display: block; }
.hero__line--neon { color: #FFE3F0; text-shadow: var(--k-glow-text); animation: land-flicker 1.1s steps(1) .25s 1 both; }
@keyframes land-flicker { 0% { opacity: .2; } 10% { opacity: 1; } 18% { opacity: .3; } 24% { opacity: 1; } 50% { opacity: .5; } 54%, 100% { opacity: 1; } }
.hero__lead { margin-bottom: 30px; max-width: 44ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; font-size: var(--k-fs-sm); color: var(--k-lilac); }
.hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero__facts .k-diamond { --size: 9px; }
.hero__machine { position: relative; padding: 24px 0 8px; }

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "top machine" "rest machine"; column-gap: clamp(36px, 5vw, 72px); row-gap: 0; grid-template-rows: auto 1fr; align-items: start; }
  .hero__top { padding-top: clamp(40px, 8vh, 120px); }
  .hero__rest { align-self: start; }
  .hero { min-height: calc(100svh - 64px); display: flex; align-items: center; }
  .hero > .hero__inner { width: min(1240px, 100% - 64px); }
}

/* Bands and section heads */
.band { position: relative; z-index: 1; box-shadow: 0 0 22px rgba(255, 46, 147, .35); }
.sec-head { max-width: 680px; margin-bottom: clamp(28px, 5vw, 48px); }
.sec-head .k-lead { max-width: 52ch; }
.sec-num { display: inline-block; margin-bottom: 10px; font: 400 1.5rem/1 var(--k-font-inline); color: var(--k-teal); text-shadow: 0 0 14px rgba(18, 229, 200, .55); }
.k-h2 { text-wrap: balance; }

/* ---------- Paytable ---------- */
.paytable-sec { padding: clamp(64px, 10vw, 120px) 0; }
.paytable { padding: 10px; border-radius: 30px; background: var(--k-noise), url("/static/img/chrome.webp"), var(--k-chrome); background-size: 220px 220px, 512px 512px, cover; background-blend-mode: overlay, soft-light, normal; box-shadow: inset 0 2px 0 rgba(255,255,255,.7), 0 0 0 3px var(--k-night), 0 0 0 5px var(--k-teal), 0 0 40px rgba(18, 229, 200, .25), 0 40px 70px -40px rgba(5, 3, 30, 1); }
.paytable__head, .paytable__rows { background: linear-gradient(180deg, rgba(13, 11, 51, .7), rgba(13, 11, 51, .9)), var(--k-knit-lilac), var(--k-night-deep); background-size: auto, 22px 20px, auto; }
.paytable__head { display: none; grid-template-columns: 196px 1fr 190px; gap: 24px; padding: 16px 28px 10px; border-radius: 22px 22px 0 0; font-size: var(--k-fs-xs); font-weight: 600; color: var(--k-lilac-dim); }
.paytable__head span:last-child { text-align: right; }
.paytable__rows { list-style: none; margin: 0; padding: 4px 0; border-radius: 22px; }
.pay { --c: var(--k-magenta); position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "reels pays" "what what"; gap: 12px 16px; align-items: center; padding: 18px 18px 20px; border-top: 1px dashed rgba(201, 184, 255, .16); transition: background .2s; }
.pay:first-child { border-top: 0; }
.pay::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); opacity: .55; transition: opacity .2s; }
.pay:hover { background: rgba(201, 184, 255, .05); }
.pay:hover::before { opacity: 1; }
.pay__reels { grid-area: reels; display: flex; gap: 5px; }
.pay__reels img { width: 46px; height: 46px; padding: 5px; border-radius: 9px; background: linear-gradient(180deg, #F2EEFF, #CFC4FF); box-shadow: inset 0 -3px 0 rgba(21, 18, 74, .2), 0 0 0 2px var(--k-night-deep); }
.pay__what { grid-area: what; }
.pay__what h3 { font-size: 1.2rem; margin: 0 0 4px; }
.pay__what p { margin: 0; font-size: var(--k-fs-sm); color: var(--k-lilac); max-width: 50ch; }
.pay__pays { grid-area: pays; margin: 0; text-align: right; line-height: 1.15; }
.pay__pays b { display: block; font: 400 clamp(1.35rem, 3vw, 1.75rem)/1 var(--k-font-display); color: var(--k-gold); text-shadow: 0 0 14px rgba(255, 176, 31, .45); }
.pay__pays small { display: block; margin-top: 4px; font-size: var(--k-fs-xs); color: var(--k-lilac-dim); }
@media (min-width: 760px) {
  .paytable__head { display: grid; }
  .paytable__rows { border-radius: 0 0 22px 22px; }
  .pay { grid-template-columns: 196px 1fr 190px; grid-template-areas: "reels what pays"; gap: 24px; padding: 18px 28px; }
  .pay__reels img { width: 58px; height: 58px; }
}

/* ---------- Pricing chip ---------- */
.pricing { position: relative; isolation: isolate; overflow: hidden; padding: clamp(70px, 10vw, 130px) 0; }
.pricing__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 55% at 28% 50%, rgba(255, 176, 31, .22), transparent 70%), radial-gradient(40% 50% at 85% 30%, rgba(255, 46, 147, .14), transparent 70%); }
.pricing__bg::after { content: ""; position: absolute; inset: 0; background: url("/static/img/chips.webp") center / cover; mix-blend-mode: screen; opacity: .09; -webkit-mask: radial-gradient(60% 70% at 30% 50%, #000, transparent); mask: radial-gradient(60% 70% at 30% 50%, #000, transparent); }
.pricing__grid { display: grid; gap: clamp(30px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .pricing__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.chip-stage { display: grid; place-items: center; perspective: 1000px; padding: 10px 0 30px; }
.chip {
  --s: min(380px, 76vw);
  position: relative; width: var(--s); aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(from -7.5deg, #FFF1C9 0 15deg, var(--k-gold) 15deg 45deg);
  transform: rotateX(20deg) rotateZ(-9deg);
  box-shadow: 0 2px 0 #EFA20A, 0 4px 0 #E09300, 0 6px 0 #D08600, 0 8px 0 #C07A00, 0 10px 0 #B06E00, 0 12px 0 #9C6000, 0 14px 0 #7D4D00, 0 40px 60px -16px rgba(5, 3, 30, .9), 0 0 90px rgba(255, 176, 31, .32);
  animation: chip-float 7s ease-in-out infinite;
}
.chip::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #FFD98A, var(--k-gold) 48%, #E58E00); box-shadow: inset 0 0 0 2px rgba(21, 18, 74, .2), inset 0 3px 0 rgba(255, 255, 255, .45); }
.chip__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: chip-turn 60s linear infinite; }
.chip__ring text { font: 400 12.4px var(--k-font-display); fill: rgba(21, 18, 74, .75); letter-spacing: .6px; }
.chip__face { position: absolute; inset: 23%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 40% 30%, rgba(255, 255, 255, .35), transparent 60%), var(--k-knit-gold), #F29A00; background-size: auto, 14px 13px, auto; box-shadow: inset 0 0 0 3px rgba(21, 18, 74, .5), inset 0 0 0 8px #FFD27A, inset 0 0 0 10px rgba(21, 18, 74, .35), inset 0 6px 14px rgba(120, 60, 0, .4); }
.chip__price { font: 400 calc(var(--s) * .25)/.9 var(--k-font-inline); color: var(--k-night); text-shadow: 0 2px 0 rgba(255, 241, 201, .7); }
.chip__per { font: 700 calc(var(--s) * .05)/1.2 var(--k-font-body); color: var(--k-night); }
@keyframes chip-float { 50% { transform: rotateX(14deg) rotateZ(-5deg) translateY(-10px); } }
@keyframes chip-turn { to { transform: rotate(1turn); } }

.includes { list-style: none; margin: 4px 0 24px; padding: 0; display: grid; gap: 10px; }
.includes li { display: flex; align-items: center; gap: 16px; font-size: var(--k-fs-md); }
.includes .k-hex { font-size: 14px; }
.includes b { color: var(--k-white); font-weight: 600; }
.pack { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; }
.pack p { margin: 0; font-size: var(--k-fs-sm); }
.pack b { color: var(--k-white); }
.pack__chip { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font: 400 .95rem/1 var(--k-font-display); color: var(--k-night); background: radial-gradient(circle, var(--k-coral) 0 52%, transparent 53%), repeating-conic-gradient(#FFE2D9 0 20deg, var(--k-coral) 20deg 60deg); box-shadow: 0 3px 0 #B8402A, 0 0 18px rgba(255, 107, 74, .4); }

/* ---------- Filmstrip ---------- */
.examples { padding: clamp(64px, 10vw, 120px) 0 clamp(50px, 8vw, 90px); overflow: hidden; }
.film { overflow-x: auto; scroll-snap-type: x proximity; padding: 26px 0 30px; scrollbar-width: thin; scrollbar-color: var(--k-magenta) transparent; }
.film:focus-visible { outline-offset: -3px; }
.film__frames {
  list-style: none; margin: 0 16px; padding: 38px 18px; display: flex; width: max-content;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='22'%3E%3Crect x='9' y='4' width='16' height='13' rx='3' fill='%23C9B8FF' fill-opacity='.62'/%3E%3C/svg%3E") repeat-x left 8px top 6px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='22'%3E%3Crect x='9' y='4' width='16' height='13' rx='3' fill='%23C9B8FF' fill-opacity='.62'/%3E%3C/svg%3E") repeat-x left 8px bottom 6px,
    linear-gradient(rgba(10, 8, 40, .72), rgba(10, 8, 40, .72)),
    url("/static/img/filmstrip.webp") center / cover,
    #0A0828;
  background-blend-mode: normal, normal, normal, luminosity, normal;
  border-radius: 6px; transform: rotate(-1.4deg);
  box-shadow: 0 0 0 1px rgba(201, 184, 255, .12), 0 30px 60px -20px rgba(5, 3, 30, .9), 0 0 60px rgba(255, 46, 147, .14);
}
.frame { scroll-snap-align: center; width: clamp(176px, 46vw, 244px); padding: 0 9px; border-left: 2px solid rgba(0, 0, 0, .55); }
.frame:first-child { border-left: 0; }
.frame__media { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255, 46, 147, .5), transparent 65%), linear-gradient(180deg, #2A2380, var(--k-night-deep)); box-shadow: inset 0 0 0 1px rgba(201, 184, 255, .18); }
.frame:nth-child(3n + 2) .frame__media { background: radial-gradient(circle at 50% 40%, rgba(18, 229, 200, .42), transparent 65%), linear-gradient(180deg, #1B3A78, var(--k-night-deep)); }
.frame:nth-child(3n + 3) .frame__media { background: radial-gradient(circle at 50% 40%, rgba(255, 176, 31, .38), transparent 65%), linear-gradient(180deg, #3A1A6E, var(--k-night-deep)); }
.frame__media img { width: 44%; filter: drop-shadow(0 8px 18px rgba(5, 3, 30, .8)); }
.frame__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.frame__media video.is-ready { opacity: 1; }
.frame p { margin: 12px 2px 0; font-size: var(--k-fs-sm); line-height: 1.35; color: var(--k-lilac); }
.frame p b { display: block; margin-bottom: 2px; font: 400 .92rem/1.2 var(--k-font-display); color: var(--k-teal); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(50px, 8vw, 110px) 0; }
.faq__grid { display: grid; gap: 10px 60px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .faq__head { position: sticky; top: 100px; } }
.faq__list { padding: 8px; }
.faq details { border-radius: 16px; transition: background .2s; }
.faq details + details { margin-top: 4px; }
.faq details[open] { background: rgba(13, 11, 51, .62); box-shadow: inset 0 0 0 1px rgba(18, 229, 200, .3); }
.faq summary { list-style: none; position: relative; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; font-size: 1.06rem; color: var(--k-white); border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -6px; transform: rotate(45deg); border: 2px solid var(--k-magenta); border-radius: 2px; transition: transform .25s var(--k-ease), background .2s, border-color .2s; }
.faq details[open] summary::after { background: var(--k-teal); border-color: var(--k-teal); transform: rotate(225deg); box-shadow: 0 0 10px var(--k-teal); }
.faq summary:hover { background: rgba(201, 184, 255, .06); }
.faq details p { margin: 0; padding: 0 22px 20px; max-width: 64ch; }

/* ---------- Footer ---------- */
.site-foot { padding: 20px 0 36px; }
.site-foot__panel { display: grid; gap: 22px; padding: clamp(24px, 4vw, 40px); }
.site-foot__brand img { height: 36px; width: auto; margin-bottom: 10px; }
.site-foot__brand p { margin: 0; color: var(--k-lilac-dim); }
.site-foot__links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-foot__links a { color: var(--k-lilac); text-decoration: none; font-weight: 600; padding: 4px 0; }
.site-foot__links a:hover { color: var(--k-teal); }
.site-foot__legal { margin: 0; font-size: var(--k-fs-sm); color: var(--k-lilac-dim); }
@media (min-width: 860px) { .site-foot__panel { grid-template-columns: 1fr auto; align-items: center; } .site-foot__legal { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--k-line); } }

/* ---------- Phone ---------- */
@media (max-width: 440px) {
  .site-top .k-logo img { height: 22px; }
  .site-top__nav .k-btn--sm { padding: 0 10px; font-size: .84rem; }
  .site-top .k-topbar__row { gap: 6px; }
  .hero__ctas .k-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .k-landing::before, .hero__line--neon, .chip, .chip__ring { animation: none !important; }
}
