/* Kral Benim website. Inline styles are blocked by the CSP, everything lives here. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.cd5cabf5b80f.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../fonts/nunito-latin.acfce21e9f6e.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #280a48;
  --ink-2: #3c0366;
  --purple: #6b2099;
  --violet: #ad46ff;
  --violet-deep: #8b2fe6;
  --lilac: #f5f1ff;
  --lilac-2: #e9e4fb;
  --gold: #ffc23d;
  --text: #3a2c55;
  --muted: #6f6489;
  --line: #e3dbf6;
  --white: #ffffff;
  --radius: 24px;
  --shadow: 0 18px 40px rgba(60, 3, 102, 0.12);
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--purple);
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lilac-2);
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow img {
  width: 22px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--violet) 0%, #ff4fb3 55%, #ff9b2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons: the app's 3D buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--violet) 0%, var(--violet-deep) 100%);
  box-shadow: 0 5px 0 #5a1696, 0 12px 24px rgba(139, 47, 230, 0.3);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #5a1696, 0 6px 14px rgba(139, 47, 230, 0.25);
}

.button--small {
  padding: 9px 18px;
  font-size: 0.95rem;
  border-radius: 14px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(227, 219, 246, 0.7);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.site-header__brand img {
  height: 46px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--violet-deep);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(800px 420px at 85% 20%, rgba(173, 70, 255, 0.28), transparent 70%),
    radial-gradient(700px 500px at 10% 0%, rgba(255, 194, 61, 0.18), transparent 70%),
    linear-gradient(180deg, var(--lilac) 0%, var(--white) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.01em;
}

.lead {
  max-width: 560px;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero__facts li {
  padding: 8px 16px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 4px 0 var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__facts strong {
  color: var(--ink);
  font-weight: 900;
}

.hero__visual {
  position: relative;
  height: 600px;
}

.hero__visual .phone {
  position: absolute;
  width: 270px;
}

.phone--front {
  right: 40px;
  top: 30px;
  transform: rotate(4deg);
}

.phone--back {
  left: 0;
  top: 0;
  transform: rotate(-8deg) scale(0.92);
  opacity: 0.95;
}

.hero__float {
  position: absolute;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 12px 18px rgba(60, 3, 102, 0.25));
}

.hero__float--crown {
  width: 110px;
  right: 0;
  top: -6px;
}

.hero__float--trophy {
  width: 84px;
  left: 30px;
  bottom: 40px;
  animation-delay: -2.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }

  50% {
    transform: translateY(-14px) rotate(4deg);
  }
}

/* Phone frame */

.phone {
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(160deg, #3a2a52, #140b22);
  box-shadow: 0 30px 60px rgba(40, 10, 72, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone img {
  width: 100%;
  border-radius: 34px;
}

/* Store badges: Google's badge has transparent padding of its own */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.store-badge--apple img {
  height: 52px;
  width: auto;
}

.store-badge--google img {
  height: 78px;
  width: auto;
  margin: -13px -12px;
}

.store-badge {
  transition: transform 0.12s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

/* Sections */

.section {
  padding: 96px 0;
}

.section--tinted {
  background: var(--lilac);
}

.section__header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__header--left {
  margin-left: 0;
  text-align: left;
}

.section__header p:last-child {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Game modes: the colours of the app's home tiles */

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mode {
  --tile: #3d90fe;
  --tile-2: #1e6fe8;
  --tile-edge: #1554b8;
  position: relative;
  padding: 28px 28px 24px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--tile) 0%, var(--tile-2) 100%);
  box-shadow: 0 8px 0 var(--tile-edge), var(--shadow);
  color: rgba(255, 255, 255, 0.92);
  transition: transform 0.15s ease;
}

.mode:hover {
  transform: translateY(-4px);
}

.mode img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: -8px 0 10px -6px;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18));
}

.mode h3 {
  color: var(--white);
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.mode p {
  margin: 0;
}

.mode--quiz {
  --tile: #fdb31a;
  --tile-2: #f59300;
  --tile-edge: #c87400;
}

.mode--trol {
  --tile: #c64dff;
  --tile-2: #8c2ef0;
  --tile-edge: #6a1fbf;
}

.mode--parolla {
  --tile: #14d2ef;
  --tile-2: #00a9c9;
  --tile-edge: #00839c;
}

.mode--wordle {
  --tile: #1ad69a;
  --tile-2: #00b477;
  --tile-edge: #008a5b;
}

.mode--wordgen {
  --tile: #8a8dff;
  --tile-2: #6467f2;
  --tile-edge: #4649c9;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 6px 0 var(--line);
}

.step__number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--violet), var(--violet-deep));
  box-shadow: 0 4px 0 #5a1696;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* Features */

.features {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
}

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 0;
}

.feature img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.feature h3 {
  margin-bottom: 4px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.features__visual .phone {
  max-width: 300px;
  margin: 0 auto;
  transform: rotate(3deg);
}

/* Screenshot gallery */

.gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 10px max(20px, calc((100vw - var(--container)) / 2 + 20px)) 30px;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
}

.gallery__item {
  flex: 0 0 240px;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}

.gallery__item figcaption {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 900;
}

/* FAQ */

.faq {
  max-width: 820px;
}

.faq details {
  margin-bottom: 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 5px 0 var(--line);
}

.faq summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--violet-deep);
  font-size: 1.6rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

/* Call to action */

.cta {
  padding: 96px 0;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(255, 194, 61, 0.25), transparent 70%),
    linear-gradient(160deg, var(--purple) 0%, var(--ink) 100%);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  max-width: 560px;
  font-size: 1.15rem;
}

.cta__icon {
  width: 112px;
  margin-bottom: 26px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.cta .store-badges {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 56px 0 24px;
  background: #1a0631;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.site-footer__brand img {
  height: 54px;
  width: auto;
  margin-bottom: 14px;
}

.site-footer__brand p {
  max-width: 360px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__links h2 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* Legal documents and forms */

.page-document main {
  background: linear-gradient(180deg, var(--lilac) 0%, var(--white) 320px);
}

.document {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: start;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.document-menu {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), 0 5px 0 var(--line);
}

.document-menu a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.document-menu a:hover {
  background: var(--lilac);
}

.document-menu a[aria-current="page"] {
  background: linear-gradient(180deg, var(--violet), var(--violet-deep));
  color: var(--white);
}

.document__body {
  max-width: 780px;
  padding: 44px 48px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.document__body h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
}

.document__body h2 {
  margin-top: 1.8em;
  font-size: 1.35rem;
}

.document__body h3 {
  margin-top: 1.3em;
  font-size: 1.1rem;
}

.document__body ul {
  padding-left: 1.2em;
}

.document__body li {
  margin-bottom: 0.6em;
}

.document__date {
  color: var(--muted);
  font-size: 0.95rem;
}

.document__box {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--lilac);
}

.document__contact {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.document__contact p {
  margin: 0 0 6px;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 900;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--violet);
  outline: none;
}

.form-field__help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-errors,
.form-field__error {
  margin: 6px 0 0;
  color: #d62b4b;
  font-weight: 800;
}

.form-errors {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #ffeef1;
}

/* Kept off screen: only bots fill it in */
.form-field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Not found */

.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found img {
  width: 140px;
  margin: 0 auto 24px;
}

/* Smaller screens */

@media (max-width: 960px) {
  .hero__inner,
  .features {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    height: 520px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }

  .modes {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__visual {
    display: none;
  }

  .document {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .document-menu {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    display: none;
  }

  .site-header__inner {
    justify-content: space-between;
  }

  .site-header__brand img {
    height: 40px;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .hero__visual {
    height: 440px;
  }

  .hero__visual .phone {
    width: 210px;
  }

  .phone--front {
    right: 10px;
  }

  .hero__float--crown {
    width: 80px;
  }

  .section,
  .cta {
    padding: 64px 0;
  }

  .modes,
  .steps {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .document__body {
    padding: 28px 22px;
  }

  .gallery__item {
    flex-basis: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__float {
    animation: none;
  }

  .button,
  .mode,
  .store-badge {
    transition: none;
  }
}
