/* ==========================================================================
   Hero 2: «Én blob» som forside, og det som kommer under når man blar. Bare spillets egne tokens og komponenter.
   Samme bevegelse overalt: bokstavene blurrer inn, blokkene glir opp og fader inn, blobbene skifter form.
   ========================================================================== */
:root {
  --pad: clamp(1.1rem, 3.2vw, 2.6rem);
  --blob-a: 63% 37% 54% 46% / 55% 48% 52% 45%; --blob-b: 40% 60% 35% 65% / 62% 38% 62% 38%; --blob-c: 55% 45% 62% 38% / 38% 62% 38% 62%; --blob-d: 35% 65% 48% 52% / 48% 40% 60% 52%;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* absolute texture paths: a url() in a custom property is resolved where the property is used (this file lies a folder deeper than the game's css) */
  --tex-grain: url('/assets/textures/grain-soft.png'); --tex-light: url('/assets/textures/crayon-light.png'); --tex-light-soft: url('/assets/textures/crayon-light-soft.png'); --tex-dark: url('/assets/textures/crayon-dark.png');
}
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
.wrap { width: min(100% - 2 * var(--pad), 72rem); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2 * var(--pad), 46rem); }
.wrap.mid { width: min(100% - 2 * var(--pad), 60rem); }
.center { text-align: center; }
.sec { position: relative; overflow-x: clip; padding-block: clamp(3.5rem, 8vw, 7rem); }
.big { font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; }
.h2 { font-size: clamp(2rem, 4.8vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--fg-muted); }
.sec-head { display: grid; gap: var(--s-3); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head.center { justify-items: center; }
.sec-head .lead { max-width: 36rem; }

/* ---- motion: the same on every page ---- */
.rv { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }
.ta .c { display: inline-block; padding-bottom: 0.18em; margin-bottom: -0.18em; opacity: 0; filter: blur(10px); transform: translateY(0.12em); animation: chin 0.9s var(--ease) both; animation-play-state: paused; animation-delay: calc(0.25s + var(--k) * var(--step, 0.035s)); }
.ta.go .c { animation-play-state: running; }
.ta .w { display: inline-block; white-space: nowrap; overflow-wrap: normal; }
@keyframes chin { to { opacity: 1; filter: none; transform: none; } }

/* ---- the photo blob ---- */
.blob { position: relative; overflow: hidden; margin: 0; border: 0.6rem solid var(--cream); background: var(--cream); border-radius: var(--blob-a); box-shadow: var(--shadow-3); animation: morph 16s ease-in-out infinite; }
.blob::after { content: ''; position: absolute; inset: 0; background: var(--tex-grain), var(--tex-light-soft); opacity: 0.36; pointer-events: none; }
.blob img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blob--b { border-radius: var(--blob-b); animation-name: morph-b; } .blob--c { border-radius: var(--blob-c); animation-name: morph-c; } .blob--d { border-radius: var(--blob-d); animation-name: morph-d; }
@keyframes morph { 0%, 100% { border-radius: var(--blob-a); } 33% { border-radius: var(--blob-b); } 66% { border-radius: var(--blob-c); } }
@keyframes morph-b { 0%, 100% { border-radius: var(--blob-b); } 50% { border-radius: var(--blob-d); } }
@keyframes morph-c { 0%, 100% { border-radius: var(--blob-c); } 50% { border-radius: var(--blob-a); } }
@keyframes morph-d { 0%, 100% { border-radius: var(--blob-d); } 50% { border-radius: var(--blob-b); } }
.cf img { opacity: 0; animation: cf 24s infinite; }
.cf img:nth-child(1) { opacity: 1; animation-delay: -1s; } .cf img:nth-child(2) { animation-delay: 5s; } .cf img:nth-child(3) { animation-delay: 11s; } .cf img:nth-child(4) { animation-delay: 17s; }
@keyframes cf { 0% { opacity: 0; transform: scale(1.02); } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; transform: scale(1.14) translateX(-1.5%); } 100% { opacity: 0; transform: scale(1.14); } }
.blob.rv { transform: scale(0.9) rotate(-3deg); } .blob.rv.in { transform: none; }

/* ---- HERO: the logo in the middle, a little over the blob; a slimmer button; a bigger tagline ---- */
.hero { position: relative; min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: var(--s-4); padding: 4.4rem var(--pad) 3rem; text-align: center; }
.stack { position: relative; display: grid; justify-items: center; }
.hero-logo { position: absolute; z-index: 6; left: 50%; top: -2.7rem; translate: -50% 0; padding: 0.56rem 1.25rem 0.75rem; box-shadow: 0 5px 0 var(--yellow-deep), 0 5px 0 1px var(--edge); animation: pop 0.7s var(--ease-bounce) 0.2s both; }
.hero-logo img { width: 7.98rem; }
.stack { --bh: clamp(14rem, 46svh, 30rem); }
.blob--xl { width: auto; height: var(--bh); aspect-ratio: 5 / 4; max-width: 90vw; }
.hero .ey { position: absolute; z-index: 3; --size: clamp(3.4rem, 8vw, 6rem); box-shadow: 0 5px 0 var(--edge); }
.ey.e1 { left: calc(50% - var(--bh) * 0.625 - 2.6rem); top: 14%; --tilt: -8deg; } .ey.e2 { right: calc(50% - var(--bh) * 0.625 - 2.8rem); top: 6%; --tilt: 7deg; --delay: -3s; }
.hero h1 { position: relative; z-index: 4; margin-top: clamp(-4.6rem, -8svh, -2rem); max-width: 14ch; font-size: clamp(2.5rem, 7.4vw, 5.8rem); line-height: 0.96; letter-spacing: -0.03em; color: var(--cream); text-shadow: 0 5px 0 var(--edge), 0 0 1.4rem rgb(var(--shadow-rgb) / 0.55); }
.hero h1 .y { color: var(--yellow); }
.hero .cta { display: grid; justify-items: center; gap: var(--s-3); }
.btn--slim { min-height: 3rem; padding: 0.3rem 1.8rem 0.4rem; font-size: 1.45rem; box-shadow: 0 4px 0 var(--btn-edge), 0 4px 0 1px var(--edge); }
.tag { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.1; color: var(--cream); text-shadow: 0 3px 0 var(--edge); white-space: nowrap; }
.cue { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-top: var(--s-2); border-radius: 50%; color: var(--cream); text-decoration: none; background: rgb(var(--cream-rgb) / 0.14); box-shadow: inset 0 0 0 2px rgb(var(--cream-rgb) / 0.3); animation: float 3s ease-in-out infinite; }
@media (max-width: 40rem) {
  .hero h1 { max-width: none; font-size: clamp(3rem, 14.4vw, 4.4rem); margin-top: -3.4rem; }
  .tag { font-size: min(4.8vw, 1.7rem); }
  .ey.e1 { left: -0.6rem; } .ey.e2 { right: -0.6rem; }
}
@media (max-width: 40rem) { .stack { --bh: min(46svh, 72vw); } }

/* ---- shared pieces ---- */
.btn--ink { --btn-bg: var(--ink); --btn-edge: rgb(var(--shadow-rgb) / 0.9); --btn-ink: var(--cream); }
.stars { display: inline-flex; gap: 0.2rem; }
.stars img { width: 1.5rem; height: 1.5rem; filter: drop-shadow(0 0 1px rgb(var(--ink-rgb) / 0.9)) drop-shadow(0 2px 0 rgb(var(--ink-rgb) / 0.35)); }
.stars img:nth-child(odd) { rotate: -8deg; } .stars img:nth-child(even) { rotate: 7deg; }
.rate { display: inline-flex; align-items: center; gap: var(--s-3); }
.rate b { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.6rem, 8vw, 6rem); line-height: 0.9; }
.rate small { display: block; margin-top: 0.3rem; font-size: var(--fs-small); color: var(--fg-muted); }
.quote { display: grid; gap: var(--s-3); padding: var(--s-5); }
.quote p { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.15; }
.who { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-small); font-weight: 700; }
.who .avatar { --size: 2.8rem; }
.who small { display: block; font-weight: 500; opacity: 0.75; }
.nums { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-6); }
.nums div { display: grid; gap: 0.1rem; }
.nums b { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--yellow); }
.nums span { font-size: var(--fs-small); color: var(--fg-muted); font-weight: 700; }
.plans3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); align-items: stretch; padding-top: 0.9rem; }
.plans3 .plan { cursor: default; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-5); }
.plans3 .plan__main { width: 100%; }
.plans3 .plan__name { font-size: 1.7rem; } .plans3 .plan__sub { font-size: 1rem; }
.plans3 .plan__price { font-size: clamp(2.4rem, 5vw, 3.2rem); }
@media (max-width: 52rem) { .plans3 { grid-template-columns: 1fr; } .plans3 .plan { flex-direction: row; align-items: center; } }
.note { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--fg-muted); text-align: center; }
.steps4 { margin: 0; padding: 0; list-style: none; display: grid; }
.steps4 li { display: grid; grid-template-columns: 3.4rem 1fr; gap: var(--s-4); align-items: baseline; padding: 1.4rem 0; border-top: 2px solid rgb(var(--cream-rgb) / 0.18); }
.steps4 li:last-child { border-bottom: 2px solid rgb(var(--cream-rgb) / 0.18); }
.steps4 .n { font-family: var(--font-display); font-weight: 900; font-size: 1.9rem; color: var(--yellow); line-height: 1; }
.steps4 h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; }
.steps4 p { margin-top: 0.3rem; color: var(--fg-muted); }
.mode { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); }
.mode img { width: 7rem; height: auto; }
.mode h3 { font-size: 1.7rem; line-height: 1.05; }
.mode .vt { font-size: 0.92rem; font-weight: 800; color: var(--orange-deep); }
.mode p { color: rgb(var(--ink-rgb) / 0.82); }

/* ---- footer ---- */
.ft { margin-top: clamp(2rem, 6vw, 4rem); color: var(--cream); background: var(--tex-grain), var(--tex-dark), var(--burgundy-950); }
.ft .wrap { padding-block: clamp(3rem, 6vw, 5rem) calc(var(--s-5) + 3.4rem); }
.ft-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-6); border-bottom: 2px solid rgb(var(--cream-rgb) / 0.18); }
.ft-top .tg { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); padding-block: var(--s-6); }
.ft h5 { margin: 0 0 var(--s-3); font-family: var(--font-text); font-size: 0.92rem; font-weight: 700; color: var(--fg-muted); }
.ft a:not(.btn):not(.logo-sticker) { display: block; padding: 0.2rem 0; color: var(--cream); text-decoration: none; transition: color 0.25s; }
.ft a:not(.btn):not(.logo-sticker):hover { color: var(--yellow); }
.ft .btn--slim { min-height: 2.1rem; padding: 0.21rem 1.26rem 0.28rem; font-size: 1.015rem; box-shadow: 0 3px 0 var(--btn-edge), 0 3px 0 1px var(--edge); }
.ft-legal { font-size: var(--fs-small); color: var(--fg-muted); }
@media (max-width: 52rem) { .ft-cols { grid-template-columns: 1fr 1fr; } }
