:root {
  --navy: #1f3a6e;
  --navy-dark: #162b54;
  --blue: #4a6fb0;
  --blue-soft: #e8eef9;
  --yellow: #fcc72c;
  --yellow-dark: #f2a81d;
  --cream: #fbf8f2;
  --white: #fff;
  --red: #e8414f;
  --text: #1f2a44;
  --muted: #6b7591;
  --shadow: 0 18px 40px -18px rgba(31, 58, 110, .45);
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; font-family: var(--body); color: var(--text); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; }

.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal; font-style: normal;
  font-size: 1.3em; line-height: 1;
  display: inline-block;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}
.ms--fill { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px;
  border-radius: 999px;
  font: 700 1.05rem var(--display);
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { height: 44px; padding: 0 20px; font-size: .9rem; }
.btn--yellow { background: var(--yellow); color: var(--navy); box-shadow: var(--shadow); }
.btn--yellow:hover { background: #ffd34f; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); }
.btn--ghost { color: var(--navy); box-shadow: inset 0 0 0 2px #c8d5ee; }
.btn--ghost:hover { background: var(--white); }
.twitch { width: 22px; height: 22px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font: 700 .85rem var(--display);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--yellow-dark);
}
section h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; }

/* nav */

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  max-width: 1180px; margin: 0 auto;
  padding: 14px 24px;
  background: rgba(251, 248, 242, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font: 600 1rem var(--display); color: var(--navy); }
.nav__links a:hover { color: var(--blue); }

/* hero */

.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px;
  max-width: 1180px; margin: 0 auto;
  padding: 48px 24px 90px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white); color: var(--navy);
  font: 600 .9rem var(--display);
  box-shadow: 0 6px 16px -10px rgba(31, 58, 110, .5);
}
.pill .ms { color: var(--yellow-dark); }
.hero h1 { margin: 20px 0 18px; font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; line-height: 1.08; }
.hl { position: relative; white-space: nowrap; color: var(--navy); }
.hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 6%; z-index: -1;
  height: 38%;
  border-radius: 10px;
  background: var(--yellow);
  transform: rotate(-1.5deg);
}
.hero__text > p { max-width: 520px; margin: 0 0 28px; font-size: 1.15rem; line-height: 1.6; color: #4a5370; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { display: flex; align-items: center; gap: 6px; margin-top: 18px !important; font-size: .9rem !important; color: var(--muted) !important; }
.hero__note .ms { color: #9146ff; font-size: 1.1rem; }

.hero__art { position: relative; height: 560px; }
.blob { position: absolute; border-radius: 50%; }
.blob--yellow { width: 380px; height: 380px; right: 30px; top: 40px; background: #fde69a; }
.blob--blue { width: 260px; height: 260px; left: 10px; bottom: 30px; background: #d3dff4; }

.stack { position: absolute; left: 50%; top: 50%; width: 270px; height: 380px; transform: translate(-50%, -52%); }
.mini {
  position: absolute; inset: 0;
  border-radius: 26px;
  overflow: hidden;
  border: 6px solid var(--white);
  background: var(--white);
  box-shadow: 0 30px 50px -22px rgba(31, 58, 110, .6);
}
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini--l { transform: translateX(-70px) rotate(-12deg) scale(.9); }
.mini--r { transform: translateX(70px) rotate(10deg) scale(.9); }
.mini--front { animation: wiggle 5s ease-in-out infinite; }
.mini__info {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px;
  background: var(--white);
}
.mini__info b { font: 600 1.15rem var(--display); color: var(--navy); }
.mini__info span { display: flex; gap: 6px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font: 500 .78rem var(--display); }
.tag--y { background: var(--yellow); }
.mini__stamp {
  position: absolute; top: 22px; left: 16px;
  padding: 4px 12px;
  border: 4px solid var(--yellow-dark); border-radius: 12px;
  background: rgba(255, 255, 255, .85);
  color: var(--yellow-dark);
  font: 700 1.3rem var(--display); text-transform: uppercase;
  transform: rotate(-14deg);
}

.mascot { position: absolute; width: auto; }
.mascot--hero { width: 150px; right: 6%; bottom: 40px; animation: bob 3.2s ease-in-out infinite; }
.bubble {
  position: absolute;
  padding: 8px 16px;
  border-radius: 18px 18px 18px 4px;
  background: var(--navy); color: var(--yellow);
  font: 700 1.2rem var(--display);
  box-shadow: var(--shadow);
}
.bubble--hero { right: 0; bottom: 190px; animation: pop-in .6s .6s both cubic-bezier(.2, .8, .3, 1.4); }
.spark { position: absolute; color: var(--yellow-dark); font-size: 2rem; animation: twinkle 2.6s ease-in-out infinite; }
.s1 { left: 6%; top: 12%; }
.s2 { right: 12%; top: 4%; font-size: 1.4rem; color: var(--blue); animation-delay: .8s; }
.s3 { left: 18%; bottom: 8%; font-size: 1.2rem; animation-delay: 1.4s; }

/* how */

.how { max-width: 1180px; margin: 0 auto; padding: 40px 24px 80px; text-align: center; }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 44px 0 0; padding: 0; list-style: none;
  counter-reset: step;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 30px 26px 30px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.step__art {
  position: relative;
  display: grid; place-items: center;
  width: 140px; height: 140px; margin-bottom: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
}
.step:nth-child(2) .step__art { background: #fff1c7; }
.step__art img { width: 110px; }
.step__num {
  position: absolute; top: 2px; right: 2px;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--navy); color: var(--yellow);
  font: 700 1.1rem var(--display);
}
.step h3 { font-size: 1.6rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); line-height: 1.55; }
.chip-row { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue-soft); color: var(--navy);
  font: 600 .9rem var(--display);
}
.chip .ms { font-size: 1.1rem; }
.chip--y { background: var(--yellow); }
.chip--heart { background: #fde4e7; color: var(--red); }
.chip--discord { background: #5865f2; color: var(--white); }

/* features */

.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 1180px; margin: 0 auto;
  padding: 0 24px 90px;
}
.feature { padding: 26px 22px; border-radius: 24px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 2px var(--blue-soft); }
.feature__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 16px;
  background: var(--navy); color: var(--yellow);
  font-size: 1.3rem;
}
.feature h3 { margin-bottom: 6px; font-size: 1.2rem; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .95rem; }

/* safety */

.safe {
  display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 40px;
  max-width: 1080px; margin: 0 auto 90px;
  padding: 48px 56px;
  border-radius: 36px;
  background: var(--navy);
  color: var(--white);
}
.safe h2 { color: var(--white); }
.safe .eyebrow { color: var(--yellow); }
.safe__art { position: relative; display: grid; place-items: center; height: 260px; }
.safe__art::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.mascot--safe { position: relative; width: 190px; animation: bob 3.6s ease-in-out infinite; }
.shield {
  position: absolute; right: 18%; bottom: 14%;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 4px solid var(--navy);
  background: var(--yellow); color: var(--navy);
  font-size: 1.6rem;
}
.checks { display: flex; flex-direction: column; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 12px; line-height: 1.5; color: #dbe4f5; }
.checks .ms { color: var(--yellow); }

/* faq */

.faq { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; text-align: center; }
.faq h2 { margin-bottom: 28px; }
.faq details {
  margin-bottom: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 24px -16px rgba(31, 58, 110, .5);
  text-align: left;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 24px;
  cursor: pointer; list-style: none;
  font: 600 1.1rem var(--display); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "add"; font-family: "Material Symbols Rounded"; font-size: 1.5rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); line-height: 1.6; }

/* cta + footer */

.cta {
  position: relative;
  max-width: 1080px; margin: 0 auto 70px;
  padding: 70px 24px 56px;
  border-radius: 36px;
  background:
    var(--yellow);
  text-align: center;
}
.mascot--cta { position: relative; width: 120px; margin: -120px auto 12px; animation: bob 3s ease-in-out infinite; }
.cta p { margin: 10px 0 26px; font-size: 1.1rem; color: var(--navy); }
.cta .btn--yellow { background: var(--navy); color: var(--white); }
.cta .btn--yellow:hover { background: var(--navy-dark); }

.foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  max-width: 1180px; margin: 0 auto;
  padding: 24px 24px calc(30px + env(safe-area-inset-bottom));
  color: var(--muted); font-size: .9rem;
}
.foot img { height: 40px; width: auto; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--navy); }

@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1.5deg); } }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.7); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; text-align: center; }
  .hero__text > p { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__note { justify-content: center; }
  .hero__art { height: 480px; }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .safe { grid-template-columns: 1fr; padding: 40px 28px; margin-left: 16px; margin-right: 16px; text-align: center; }
  .checks { text-align: left; }
  .cta { margin-left: 16px; margin-right: 16px; }
}

@media (max-width: 600px) {
  .nav { gap: 12px; padding: 10px 16px; }
  .nav__logo img { height: 40px; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 16px 16px 56px; }
  .hero__cta .btn { width: 100%; }
  .hero__art { height: 420px; }
  .stack { width: 220px; height: 310px; }
  .mini--l { transform: translateX(-52px) rotate(-12deg) scale(.88); }
  .mini--r { transform: translateX(52px) rotate(10deg) scale(.88); }
  .mascot--hero { width: 110px; right: 2%; bottom: 20px; }
  .bubble--hero { bottom: 130px; font-size: 1rem; }
  .blob--yellow { width: 260px; height: 260px; right: 0; }
  .blob--blue { width: 180px; height: 180px; }
  .how { padding: 24px 16px 60px; }
  .features { grid-template-columns: 1fr; padding: 0 16px 60px; }
  .safe { padding: 32px 22px; }
  .safe__art { height: 200px; }
  .mascot--safe { width: 150px; }
  .faq { padding: 0 16px 60px; }
  .faq summary { padding: 18px 20px; font-size: 1rem; }
  .cta { padding: 64px 20px 44px; }
  .cta .btn { width: 100%; }
  .foot { flex-direction: column; text-align: center; }
}

/* join with twitch (demo) */
.btn--twitch { background: #9146ff; color: var(--white); box-shadow: var(--shadow); }
.btn--twitch:hover { background: #7c2ff2; }
body.auth { min-height: 100dvh; background: radial-gradient(circle at 12% 18%, rgba(252, 199, 44, .25), transparent 45%), radial-gradient(circle at 88% 82%, rgba(145, 70, 255, .14), transparent 50%), var(--cream); }
.auth .nav { background: transparent; backdrop-filter: none; }
.auth__main { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 16px 48px; }
.demo-banner {
  display: flex; align-items: flex-start; gap: 8px;
  width: min(480px, 100%); margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff3c4; color: #5c4300;
  font-size: .9rem; line-height: 1.45;
}
.demo-banner .ms { color: var(--yellow-dark); }
.auth-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: min(480px, 100%);
  padding: 34px 32px 30px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}
.auth-card[hidden] { display: none; }
.auth-card h1 { font-size: 1.7rem; font-weight: 600; }
.auth-card__lead { margin: 0; color: var(--muted); line-height: 1.55; }
.auth-card__small { margin: 0; color: var(--muted); font-size: .88rem; }
.auth-card__bird { width: 120px; }
.auth-card__buttons { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.auth-card__buttons .btn { width: 100%; }

.connect { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.connect__app, .connect__twitch { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 8px 20px -10px rgba(31, 58, 110, .6); }
.connect__twitch { display: grid; place-items: center; background: #9146ff; color: var(--white); }
.connect__twitch svg { width: 32px; height: 32px; }
.connect__dots { display: flex; gap: 5px; }
.connect__dots i { width: 7px; height: 7px; border-radius: 50%; background: #c8d5ee; animation: twinkle 1.2s ease-in-out infinite; }
.connect__dots i:nth-child(2) { animation-delay: .2s; }
.connect__dots i:nth-child(3) { animation-delay: .4s; }

.perms { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 4px 0 0; padding: 16px; list-style: none; border-radius: 18px; background: var(--blue-soft); text-align: left; }
.perms li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; color: var(--navy); font-weight: 600; font-size: .95rem; }
.perms .ms { color: #9146ff; }
.perms--todo .ms { color: var(--blue); }
.perms__not { display: flex; gap: 6px; margin: 0; color: var(--muted); font-size: .85rem; text-align: left; line-height: 1.45; }
.perms__not .ms { font-size: 1.1rem; }

.demo-switch {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 6px 0 0; padding: 0; border: 0;
}
.demo-switch legend { width: 100%; margin-bottom: 6px; color: var(--muted); font: 700 .75rem var(--display); letter-spacing: .1em; text-transform: uppercase; }
.demo-switch label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--blue-soft); border-radius: 999px;
  font: 600 .9rem var(--display); color: var(--navy);
  cursor: pointer;
}
.demo-switch label:has(input:checked) { border-color: var(--navy); background: #f3f6fc; }
.demo-switch input { accent-color: var(--navy); margin: 0; }

.loader { width: 44px; height: 44px; margin-top: 6px; border-radius: 50%; border: 5px solid var(--blue-soft); border-top-color: #9146ff; animation: spin .8s linear infinite; }
.bob { animation: bob 2.4s ease-in-out infinite; }
.badge-aff { display: inline-flex; align-items: center; gap: 4px; padding: 5px 14px; border-radius: 999px; background: #f1e8ff; color: #7c2ff2; font: 600 .95rem var(--display); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .auth-card { padding: 28px 20px 24px; }
}

/* impressum / datenschutz */
.legal-doc {
  max-width: 760px; margin: 8px auto 40px;
  padding: 40px 44px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  line-height: 1.65;
}
.legal-doc h1 { margin-bottom: 18px; font-size: clamp(2rem, 5vw, 2.6rem); }
.legal-doc h2 { margin: 30px 0 8px; font-size: 1.25rem; font-weight: 600; }
.legal-doc p, .legal-doc ul { margin: 0 0 12px; color: #3c4766; }
.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin-bottom: 4px; }
.legal-doc a { color: var(--blue); font-weight: 700; }
.legal-doc__lead { padding: 14px 18px; border-radius: 16px; background: #fff3c4; color: #5c4300 !important; }
.legal-doc__foot { margin-top: 30px !important; padding-top: 16px; border-top: 2px dashed var(--blue-soft); color: var(--muted) !important; font-size: .9rem; }
@media (max-width: 600px) { .legal-doc { margin: 0 12px 30px; padding: 28px 20px; } }
.auth__legal { margin: 4px 0 0; font-size: .85rem; }
.auth__legal a { color: var(--muted); text-decoration: none; }
.auth__legal a:hover { text-decoration: underline; }
.legal-page .nav .btn { margin-left: auto; }

.invite-ok { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 6px; padding: 10px 14px; border-radius: 14px; background: #e3f5ea; color: #1d6b45; font-size: .92rem; text-align: left; }
.invite-ok .ms { color: #2fa36b; }
.beta-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 14px; border-radius: 999px; background: var(--navy); color: var(--yellow); font: 600 .85rem var(--display); }
.beta-pill .ms { font-size: 1.05rem; }
.request-note { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; font: 600 .92rem var(--display); color: var(--navy); }
.request-note em { font-style: normal; font-weight: 600; color: var(--muted); font-size: .8rem; }
.request-note textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--blue-soft); border-radius: 14px; background: #f8faff; font: 600 .95rem var(--body); color: var(--navy); resize: vertical; outline: 0; }
.request-note textarea:focus { border-color: var(--blue); background-color: var(--white); }
.demo-switch[hidden], .invite-ok[hidden] { display: none; }

/* interest check */
.interest { max-width: 1080px; margin: 0 auto 90px; padding: 0 24px; }
.interest__card {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: center;
  padding: 36px 40px;
  border-radius: 32px;
  background: var(--white);
  border: 3px solid var(--yellow);
}
.interest__bird { grid-row: span 2; width: 130px; }
.interest__text h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.interest__text p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.interest__form { grid-column: 2; margin-top: 14px; }
.interest__row { display: flex; gap: 10px; }
.interest__row input {
  flex: 1; min-width: 0; height: 56px; padding: 0 20px;
  border: 2px solid var(--blue-soft); border-radius: 999px;
  background: #f8faff;
  font: 600 1.05rem var(--body); color: var(--navy);
  outline: 0;
}
.interest__row input:focus { border-color: var(--blue); background-color: var(--white); }
.interest__row .btn { flex: 0 0 auto; }
.interest__consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; color: var(--muted); font-size: .88rem; line-height: 1.45; cursor: pointer; }
.interest__consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.interest__consent a { color: var(--blue); font-weight: 700; }
.interest__msg { min-height: 1.3em; margin: 10px 0 0; font-weight: 700; font-size: .92rem; }
.interest__msg--ok { color: #2fa36b; }
.interest__msg--error { color: #c22f3d; }
.interest__form.is-done .interest__row, .interest__form.is-done .interest__consent { display: none; }
@media (max-width: 700px) {
  .interest { padding: 0 16px; margin-bottom: 60px; }
  .interest__card { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; }
  .interest__bird { grid-row: auto; width: 100px; margin: 0 auto; }
  .interest__form { grid-column: 1; text-align: left; }
  .interest__row { flex-direction: column; }
  .interest__row .btn { width: 100%; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
