/* iqmaster preland. Tokens, fonts and atoms mirror the root site (root/public/assets/css/core.css). */

@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/commissioner-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  --blue: #4b8ca8;
  --navy: #10303e;
  --navy-soft: #3d5a67;
  --mist: #dcebf2;
  --mist-line: #c4dde8;
  --paper: #f4f9fb;
  --white: #fff;
  --accent: #ea375c;
  --accent-deep: #c9244a;
  --accent-wash: #fde5eb;
  --gold: #ffc94d;
  --on-dark: #eef6fa;
  --on-dark-soft: #b9d3df;
  --ff-head: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --ff-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 30px;
  --shadow: 0 22px 44px -26px rgba(16, 48, 62, 0.55);
  --shadow-s: 0 10px 24px -16px rgba(16, 48, 62, 0.5);
  --ease: 0.25s cubic-bezier(0.3, 0.7, 0.3, 1);
  --column: 600px;
  --gutter: clamp(16px, 5vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background-color: var(--blue);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--navy);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag--gold {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- Shell ---------- */

.container-wrapper {
  width: min(var(--column), 100%);
  margin: 0 auto;
}

.container {
  display: block;
}

.intro,
.steps,
.footer {
  padding-inline: var(--gutter);
}

.intro {
  min-height: 100svh;
  padding-bottom: 36px;
  background: var(--paper);
}

/* ---------- First screen ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--mist-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand__accent {
  color: var(--accent);
}

.topbar__chip {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--ff-head);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.intro__copy {
  padding: 28px 0 24px;
}

.intro__copy .tag {
  margin-bottom: 14px;
}

.intro__copy h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 8.6vw, 44px);
}

.intro__copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.intro__copy p {
  max-width: 34em;
  color: var(--navy-soft);
  font-size: 17px;
}

.puzzle {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  animation: puzzle-in 0.6s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

@keyframes puzzle-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
}

.puzzle__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
}

.puzzle__head h2 {
  font-size: 22px;
}

.puzzle__step {
  color: var(--accent-deep);
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sequence {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 22px 16px;
  background-color: var(--mist);
  background-image: linear-gradient(rgba(16, 48, 62, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 48, 62, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.sequence__item {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 52px;
  padding: 0 8px;
  border-radius: var(--radius-s);
  background: var(--white);
  box-shadow: var(--shadow-s);
  font-family: var(--ff-head);
  font-size: 22px;
  font-weight: 700;
}

.sequence__item--gap {
  border: 2px dashed var(--accent);
  background: var(--accent-wash);
  box-shadow: none;
  color: var(--accent);
  animation: bob 1.6s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(-4px);
  }
}

.puzzle__hint {
  padding: 14px 20px 0;
  color: var(--navy-soft);
  font-size: 15px;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px 22px;
}

.choice {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 2px solid var(--mist-line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-family: var(--ff-head);
  font-size: 26px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color var(--ease),
    background-color var(--ease),
    color var(--ease),
    transform var(--ease);
}

.choice__key {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
}

.choice:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.choice:active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  transform: scale(0.97);
}

.choice[aria-disabled="true"] {
  cursor: progress;
}

.intro__note {
  margin-top: 18px;
  color: var(--navy-soft);
  font-size: 14px;
  text-align: center;
}

/* ---------- How it works ---------- */

.steps {
  padding-top: 44px;
  padding-bottom: 44px;
  background: var(--navy);
  color: var(--on-dark);
}

.steps .tag {
  margin-bottom: 14px;
}

.steps h2 {
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(26px, 7vw, 32px);
}

.steps__lead {
  margin-bottom: 24px;
  color: var(--on-dark-soft);
}

.steps__list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.step__no {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
}

.step h3 {
  margin: 2px 0 4px;
  color: var(--white);
  font-size: 18px;
}

.step p {
  color: var(--on-dark-soft);
  font-size: 15px;
}

.facts {
  display: grid;
  gap: 12px;
}

.facts p {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  font-size: 15px;
  line-height: 1.55;
}

.facts .facts__price {
  border-left-color: var(--accent);
}

.facts b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--ff-head);
}

.facts strong {
  color: var(--white);
}

/* ---------- Footer (rows from assets/js/main.js) ---------- */

.footer {
  padding-top: 28px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--navy);
  color: var(--on-dark-soft);
  font-size: 13px;
  line-height: 1.6;
}

.footer__company {
  display: block;
  width: 100%;
  max-width: 305px;
  height: auto;
  margin-bottom: 14px;
}

.footer p + p {
  margin-top: 6px;
}

.footer a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .container-wrapper {
    padding-top: 24px;
  }

  .intro {
    border-radius: var(--radius-l) var(--radius-l) 0 0;
  }
}

@media (max-width: 360px) {
  .sequence {
    gap: 6px;
  }

  .sequence__item {
    min-width: 40px;
    height: 46px;
    font-size: 19px;
  }

  .puzzle__head,
  .puzzle__hint,
  .choices {
    padding-inline: 14px;
  }
}

/* Short landscape screens: keep the first screen from forcing extra height. */
@media (orientation: landscape) and (max-height: 500px) {
  .intro {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  div#CybotCookiebotDialog {
    position: fixed !important;
    top: auto !important;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: 75dvh !important;
    margin: 0 !important;
    transform: none !important;
    scale: 1 !important;
    border-radius: 16px !important;
    overflow-y: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
