/* CrazyVerse v2 — sections of the rebuilt pages (hero, plan ladder, features,
   location, FAQ, closing CTA). Taken from the approved Rust landing mockup. */

/* ── Hero ── */
.hero { position: relative; padding-top: 48px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -20%; top: 0; width: 80%; height: 90%;
  background: radial-gradient(closest-side, rgba(var(--glow), .20), transparent 70%);
  pointer-events: none; animation: v2-glow 4s ease-in-out infinite;
}
@keyframes v2-glow { 50% { opacity: .6; } }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 32px; align-items: end; }
.hero__h { margin-top: 16px !important; font-size: clamp(64px, 17vw, 152px) !important; line-height: .86 !important; }
.hero__sub { margin-top: 24px; max-width: 36ch; font-size: 18px; color: var(--muted); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__price { margin: 32px 0 0; display: flex; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; max-width: 420px; }
.hero__price dt { font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.hero__price dd { margin: 0 0 0 auto; }
.eur { font: 900 48px/1 var(--f-display); font-stretch: 75%; }
.per { font: 500 14px/1 var(--f-mono); color: var(--muted); margin-left: 4px; }
.hero__art { position: relative; justify-self: center; width: min(100%, 340px); margin-bottom: -2px; will-change: transform; }
.hero__art img {
  width: 100%; height: auto; object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 98%);
          mask-image: linear-gradient(to bottom, #000 60%, transparent 98%);
}
.hero__stencil { position: absolute; right: 0; top: 8%; font: 400 15px/1 var(--f-mono); letter-spacing: .2em; color: var(--dim); writing-mode: vertical-rl; }
@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 24px; }
  .hero__copy { padding-bottom: 64px; }
  .hero__art { width: 100%; max-width: 520px; justify-self: end; }
  .hero__sub { font-size: 20px; }
}

/* full-scene artwork variant (Minecraft): picture fills the hero, dark fade on the text side */
.hero--scene { padding-bottom: 0; }
.hero--scene::after { display: none; }
.hero__scene { position: absolute; inset: 0 0 14px 0; z-index: 0; overflow: hidden; will-change: transform; }
.hero__scene img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero__scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(12,12,13,.92) 30%, rgba(12,12,13,.55) 58%, rgba(12,12,13,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
@media (min-width: 700px) {
  /* keep Steve & Alex beside the headline, not under it */
  .hero__scene { left: 30%; }
  .hero__scene img { object-position: 46% 40%; }
  .hero__scene::after {
    background:
      linear-gradient(90deg, var(--bg) 0%, rgba(12,12,13,.75) 18%, rgba(12,12,13,.1) 45%, transparent 100%),
      linear-gradient(0deg, var(--bg) 0%, transparent 30%);
  }
}
.hero--scene .hero__grid { min-height: min(78vh, 760px); align-items: center; }
.hero--scene .hero__copy { padding-bottom: 48px; }
.hero--scene .hero__sub { color: #cfcbc4; }
@media (max-width: 699px) {
  /* phone: show Steve & Alex in the top part, text sits on the dark fade below */
  .hero__scene { bottom: auto; height: 560px; }
  .hero__scene img { object-position: 50% 38%; }
  .hero__scene::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(12,12,13,.9) 32%, rgba(12,12,13,.2) 62%, transparent 100%); }
  .hero--scene .hero__grid { min-height: 0; padding-top: 250px; }
}

.facts { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; }
.facts li { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line); list-style: none; }
.facts li:nth-child(odd) { border-right: 1px solid var(--line); }
.facts li:nth-child(even) { padding-left: 16px; }
.facts b { display: block; font: 800 22px/1.1 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em; }
.facts span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .facts li, .facts li:nth-child(even) { padding: 32px 24px; border-right: 1px solid var(--line); border-bottom: 0; }
  .facts li:first-child { padding-left: 0; }
  .facts li:last-child { border-right: 0; }
  .facts b { font-size: 26px; }
}

/* ── Plans ── */
.plans { padding: 64px 0; }
.head { margin-bottom: 32px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.controls > div { margin: 0 !important; }
.controls #billing-interval-selector { justify-content: flex-start; margin: 0 !important; }
.cur { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--bg-2); }
.cur label { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cur select { background: var(--bg) !important; color: var(--text); border: 1px solid var(--line-2); padding: 6px 8px; font: 400 15px/1 var(--f-mono); cursor: pointer; }
.tabs { display: inline-flex; border: 1px solid var(--line-2); background: var(--bg-2); }
.tabs .tab-btn { padding: 0 22px !important; background: none; border: 0; cursor: pointer; }
@media (min-width: 900px) {
  .plans { padding: 96px 0; }
  .head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: end; margin-bottom: 48px; }
  .head .kicker { grid-column: 1 / -1; }
  .head .lede { margin-top: 0; }
}

.note { margin: 0 0 24px; padding: 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--accent); background: var(--bg-2); color: var(--muted); font-size: 15px; max-width: 80ch; }
.note b { color: var(--text); }

.tiers { border-top: 1px solid var(--line-2); margin: 0; padding: 0; list-style: none; }
.tier {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-areas: "icon name price" "icon ram price" "spec spec spec" "cta cta cta";
  column-gap: 16px; row-gap: 4px;
  padding: 24px 0; border-bottom: 1px solid var(--line); position: relative; transition: background .15s;
}
.tier__icon { grid-area: icon; width: 56px; height: 56px; object-fit: contain; align-self: center; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.tier:hover .tier__icon { transform: rotate(-8deg) scale(1.12); }
.tier__name { grid-area: name; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tier__name h3 { margin: 0; font: 400 28px/1 var(--f-grit) !important; text-transform: uppercase; letter-spacing: .03em; overflow-wrap: anywhere; }
@media (max-width: 480px) { .tier__name h3 { font-size: 23px !important; } .tier__price .price { font-size: 24px !important; } .tier__spec { min-width: 0; } }
.badge { font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 5px 7px; }
.tier__ram { grid-area: ram; margin: 0; font: 500 14px/1.2 var(--f-mono); color: var(--muted); }
.tier__ram b { font: 800 22px/1 var(--f-display); font-stretch: 75%; color: var(--text); }
.tier__spec { grid-area: spec; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; padding: 0; list-style: none; font: 400 14px/1.4 var(--f-mono); color: var(--muted); }
.tier__spec li { position: relative; padding-left: 14px; }
.tier__spec li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 2px; background: var(--dim); }
.tier__price { grid-area: price; align-self: center; text-align: right; }
.tier__price .price { margin: 0 !important; font: 900 30px/1.05 var(--f-display) !important; font-stretch: 75% !important; color: var(--text) !important; }
/* multi-month prices read "€34.20 / 3mo (€11.40/mo)": smaller so they sit on two lines at most */
.tier__price .price.is-long { font-size: 21px !important; }
.tier__setup { margin: 4px 0 0; font: 400 12px/1.3 var(--f-mono); color: var(--dim); }
.tier--start .tier__price .price, .tier:hover .tier__price .price { color: var(--accent-hi) !important; }
.tier__cta { grid-area: cta; margin-top: 16px; }
.tier__cta .dynamic-btn-container button { width: 100%; }
@media (min-width: 900px) {
  .tier {
    grid-template-columns: 64px 1.3fr .8fr 2fr 1.2fr 190px;
    grid-template-areas: "icon name ram spec price cta";
    column-gap: 24px; align-items: center; padding: 24px 16px;
  }
  .tier__icon { width: 64px; height: 64px; }
  .tier__spec { margin-top: 0; }
  .tier__cta { margin-top: 0; }
  .tier:hover { background: var(--bg-2); }
  .tier:hover::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--accent); }
}
.js .tiers.reveal-kids > * { transform: translateX(-28px); }
.js .tiers.reveal-kids.in > * { transform: none; }
.fine { margin-top: 16px; font: 400 13px/1.5 var(--f-mono); color: var(--dim); }
.grid-hidden, .tiers.hidden { display: none !important; }

/* ── What's on the box ── */
.box { padding: 64px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.box__grid { display: grid; gap: 48px; }
.feat { margin: 32px 0 0; padding: 0; list-style: none; display: grid; }
.feat li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.feat li > span { font: 500 13px/1.9 var(--f-mono); color: var(--accent-hi); }
.feat h3 { margin: 0; font: 800 22px/1.2 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .03em; }
.feat p { margin: 4px 0 0; color: var(--muted); max-width: 52ch; }
.feat code { font-size: .9em; background: var(--panel); border: 1px solid var(--line); padding: 1px 6px; }
.term { margin: 0; align-self: start; background: #0a0908; border: 1px solid var(--line-2); min-width: 0; }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--f-mono); color: var(--dim); }
.term__bar i { width: 9px; height: 9px; background: var(--line-2); display: block; }
.term__bar i:first-child { background: var(--accent); }
.term__bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term pre { margin: 0; padding: 24px 16px; font: 400 13px/1.75 var(--f-mono); color: var(--text); white-space: pre-wrap; word-break: break-word; }
.term .c { color: var(--dim); }
.term .p { color: var(--accent-hi); }
.term .ok { color: #b9c08a; }
.cur-blink { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--text); animation: v2-blink 1.1s steps(1) infinite; }
@keyframes v2-blink { 50% { opacity: 0; } }
.term figcaption { padding: 10px 14px; border-top: 1px solid var(--line); font: 400 12px/1.4 var(--f-mono); color: var(--dim); }
@media (min-width: 900px) {
  .box { padding: 96px 0; }
  .box__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .feat { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .term { position: sticky; top: 96px; margin-top: 120px; }
  .term pre { font-size: 14px; padding: 32px 24px; }
}

/* ── Location ── */
.de { padding: 64px 0; position: relative; overflow: hidden; }
.de__grid { display: grid; gap: 48px; align-items: center; }
.de__big { position: relative; display: inline-block; justify-self: start; font: 900 clamp(160px, 52vw, 420px)/.78 var(--f-display); font-stretch: 62%; color: var(--panel); letter-spacing: -.02em; user-select: none; }
.de__big::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -14px; height: 10px; background: var(--accent); }
.js .de__big::after { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.7,0,.2,1) .3s; }
.js .de__big.in::after { transform: scaleX(1); }
.sites { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sites li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sites b { font: 800 26px/1.1 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .03em; }
.sites .mono { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .de { padding: 96px 0; } .de__grid { grid-template-columns: 1fr 1fr; } }

/* ── FAQ ── */
.faq { padding: 64px 0; border-top: 1px solid var(--line); }
.faq__grid { display: grid; gap: 32px; }
.qs { border-top: 1px solid var(--line-2); }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0; font: 700 22px/1.2 var(--f-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .03em;
}
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); font: 400 20px/1 var(--f-mono); color: var(--accent-hi); transition: transform .2s; }
.qs details[open] summary::after { transform: rotate(45deg); }
.qs summary:hover { color: var(--accent-hi); }
.qs details p { padding: 0 0 24px; margin: 0; color: var(--muted); max-width: 62ch; }
.qs details[open] p { animation: v2-rise .35s ease-out; }
@media (min-width: 900px) { .faq { padding: 96px 0; } .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* ── Closing CTA ── */
.end { background: var(--bg-2); border-top: 1px solid var(--line); }
.end__row { display: grid; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.end h2 span { color: var(--accent); font-family: var(--f-grit) !important; font-weight: 400 !important; }
.end .btn { justify-self: start; }
@media (min-width: 900px) { .end__row { grid-template-columns: 1fr auto; align-items: end; padding-top: 96px; padding-bottom: 96px; } }

/* ── Home hero (keeps the existing game rotator markup) ── */
#hero-section { background-color: var(--bg); }
#hero-section { height: auto !important; min-height: 92vh; }
#hero-section > .container { height: auto !important; padding-top: 72px; }
#hero-section h1 { font-size: clamp(48px, 8.6vw, 104px) !important; line-height: .88 !important; text-shadow: none !important; filter: none !important; }
#hero-section h1 br { display: none; }
#hero-section #hero-title-accent { font-family: var(--f-grit) !important; font-weight: 400 !important; font-size: .78em; display: block; margin-top: .08em; }
#hero-section .bg-gradient-to-r.from-\[\#08090d\] { background: linear-gradient(90deg, var(--bg) 0%, rgba(12,12,13,.85) 45%, transparent 100%) !important; }
#hero-section .bg-gradient-to-t.from-\[\#08090d\] { background: linear-gradient(0deg, var(--bg) 0%, transparent 60%) !important; }
#hero-section .stat-block { border-color: var(--line) !important; }
#game-cards-container > div { border-radius: 0 !important; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
#game-cards-container > div.border-cyan-400 { border-color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent), 0 10px 40px rgba(var(--glow), .35) !important; }
@media (max-width: 640px) { #hero-section .stat-block { gap: 18px !important; } .stat-value { font-size: 30px !important; } }
