* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* line-height: 1.5; */
}

:root {
  --primary-color: #153243;
  --primary-dark: #0b1a24;
  --mainBackground-color: #f9f9f9;
  --paper-color: #fefefa;
  /* --accent-color: #ff7470; */
  /* --accent-color: #E04E39; */
  --accent-color: #e96754;
  --accent-dark: #9b302d;
  --muted-text: #42617a;
  --soft-border: rgba(21, 50, 67, 0.18);
  --soft-shadow: 0 8px 22px rgba(21, 50, 67, 0.08);
  --strong-shadow: 0 18px 45px rgba(21, 50, 67, 0.12);

  --hero-title-color: #102c3a;
  /* --hero-title-color: #09151C; */

}

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
  background-color: var(--mainBackground-color);
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--primary-dark);
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
}

h2 {
  font-size: clamp(22px, 3.5vw, 30px);
}

p {
  color: var(--primary-dark);
}

a {
  text-decoration: none;
}

.and {
  margin: 0 2px 0 4px;
}

/* HEADER */

header {
  width: 100%;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--paper-color);
  top: 0;
  position: relative;
  z-index: 1000;
}

.main-head {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  flex-shrink: 0;
  font-size: clamp(25px, 5vw, 30px);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

header > nav {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1001;
  box-sizing: content-box;
}

/* SIDEBAR */

.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  height: 100vh;
  width: 300px;
  transition: 0.2s linear;
  background-color: var(--paper-color);
  color: #111111;
  z-index: 3;
  padding: 60px 10px;
}

.sidebar.is-active {
  left: 0;
  box-shadow: 5px 0 3px -3px #00000030;
}

.sidebar h2 {
  color: var(--paper-color);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.sidebar a {
  font-size: 0.85rem;
}

.menu-item {
  display: flex;
  padding: 10px 20px;
  color: #202930;
  text-decoration: none;
  transition: 0.3s ease-out;
}

.menu-item:hover,
.menu-item.is-active {
  color: var(--accent-color);
}

/* HAMBURGER */

.hamburger-container {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 50px;
}

.menu-toggle {
  display: block;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
}

.hamburger {
  cursor: pointer;
  position: relative;
  top: 17%;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--paper-color);
  margin: 5px auto;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menuButton {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1001;
}

/* GENERAL LEGACY CLASSES */

.container {
  width: 80%;
  min-height: calc(100vh - 60px);
  margin: 10px auto;
}

.section {
  width: 100%;
  min-height: 200px;
  margin: 20px auto;
}

.dark-link {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* HOME PAGE */

.home-container {
  width: min(88%, 1180px);
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}

.home-hero {
  /* margin: 42px auto 46px; */
  padding: 34px 28px;
  /* border: 4px solid var(--primary-color); */
  /* border-radius: 28px; */
  /* background:
    radial-gradient(
      circle at top right,
      rgba(255, 116, 112, 0.18),
      transparent 32%
    ),
    linear-gradient(135deg, var(--paper-color), #f5f7f7); */
  text-align: center;
  /* box-shadow: var(--strong-shadow); */
}

.home-kicker {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--primary-color);
  color: var(--paper-color);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.home-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.home-hero h1 span {
  /* color: var(--accent-color); */
  margin: 0 6px;
}

.home-hero-text {
  max-width: 620px;
  margin: 0 auto;
  color: #344858;
  font-size: 18px;
}

.home-section {
  margin: 48px 0;
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(21, 50, 67, 0.22);
  padding-bottom: 14px;
}

.home-section-label {
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.home-section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  color: var(--primary-dark);
  text-align: left;
}

.home-section-head > p {
  max-width: 390px;
  color: var(--muted-text);
  font-size: 16px;
  text-align: right;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.home-grid-trainers {
  grid-template-columns: repeat(3, 1fr);
}

.home-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--soft-border);
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--paper-color);
  color: var(--primary-dark);
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.home-card:hover {
  /* transform: translateY(-5px); */
  border-color: rgba(255, 116, 112, 0.8);
  box-shadow: 0 6px 12px rgba(21, 50, 67, 0.16);
}

.home-card-preview {
  height: 145px;
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

/* .home-card-preview::after {
  content: "";
  width: 160px;
  height: 160px;
  position: absolute;
  right: -58px;
  top: -60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
} */

.home-card-body {
  flex: 1;
  padding: 18px;
}

.home-card-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(255, 116, 112, 0.14);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.home-card h3 {
  color: var(--primary-dark);
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.home-card p {
  color: var(--muted-text);
  font-size: 15px;
  line-height: 1.55;
}

/* HOME CARD PREVIEWS */

.preview-case {
  padding: 26px;
}

.preview-chip {
  display: inline-flex;
  width: 46px;
  height: 34px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-color);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.preview-line {
  display: block;
  height: 10px;
  width: 62%;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
}

.preview-line.wide {
  width: 86%;
}

.preview-button {
  display: block;
  width: 48%;
  height: 18px;
  border-radius: 999px;
  background-color: var(--paper-color);
  margin-top: 14px;
}

.preview-timer {
  display: grid;
  place-items: center;
}

.preview-ring {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, var(--primary-color) 58%, transparent 59%),
    conic-gradient(var(--accent-color) 72%, rgba(255, 255, 255, 0.22) 0);
}

.preview-ring span {
  color: var(--paper-color);
  font-size: 18px;
  font-weight: 800;
}

.preview-mini-buttons {
  position: absolute;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.preview-mini-buttons span {
  width: 52px;
  height: 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.35);
}

.preview-roman {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.roman-mark {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 48px;
  border-radius: 14px;
  background-color: var(--paper-color);
  color: var(--primary-color);
  font-weight: 900;
  font-size: 22px;
}

.roman-arrow {
  color: var(--accent-color);
  font-size: 34px;
  font-weight: 900;
}

.preview-todo {
  padding: 28px;
}

.preview-todo span {
  display: block;
  height: 22px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.28);
  margin-bottom: 12px;
  position: relative;
}

.preview-todo span::before {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  left: 12px;
  top: 6px;
  border: 2px solid var(--accent-color);
  border-radius: 3px;
}

.preview-todo span::after {
  content: "";
  width: 54%;
  height: 6px;
  position: absolute;
  left: 38px;
  top: 8px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.75);
}

.preview-memory {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.preview-memory span {
  color: var(--paper-color);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
}

.preview-memory span:nth-child(2),
.preview-memory span:nth-child(4) {
  color: var(--accent-color);
  
}

.preview-word-counter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
}

.preview-word-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--paper-color);
  font-size: 13px;
  white-space: nowrap;
}

.preview-word-summary strong {
  color: var(--paper-color);
  font-size: 13px;
  font-weight: 800;
}

.preview-word-dot {
  color: var(--accent-color);
  font-size: 18px;
  line-height: 1;
}

.preview-word-layout {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 10px;
}

.preview-word-editor {
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.09);
}

.preview-word-editor span {
  display: block;
  width: 100%;
  height: 7px;
  margin-bottom: 8px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.72);
}

.preview-word-editor span:nth-child(2) {
  width: 82%;
}

.preview-word-editor span:nth-child(3) {
  width: 92%;
}

.preview-word-editor span:nth-child(4) {
  width: 58%;
  margin-bottom: 0;
}

.preview-word-stats {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 11px 8px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.2);
}

.preview-word-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.preview-word-stats i {
  width: 19px;
  height: 5px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.62);
}

.preview-word-stats b {
  color: var(--paper-color);
  font-size: 10px;
  font-weight: 800;
}


.preview-reflex-aim {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
}

.preview-reflex-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.preview-reflex-stats span {
  display: grid;
  place-items: center;
  height: 24px;
  border-radius: 999px;
  background-color: var(--paper-color);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
}

.preview-reflex-stats .preview-reflex-score {
  background-color: var(--accent-color);
  color: #fff;
}

.preview-reflex-field {
  flex: 1;
  position: relative;
  min-height: 0;
  border-radius: 11px;
  background-color: rgba(11, 26, 36, 0.46);
  overflow: hidden;
}

.preview-target {
  width: 19px;
  height: 19px;
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(11, 26, 36, 0.2);
}

.target-one {
  top: 17%;
  left: 70%;
  background-color: #7657ff;
}

.target-two {
  top: 48%;
  left: 39%;
  background-color: #08aeb3;
}

.target-three {
  right: 9%;
  bottom: 18%;
  background-color: #f7b846;
}

.target-four {
  left: 16%;
  bottom: 12%;
  background-color: var(--accent-color);
}


.preview-math-calculate {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px;
}

.preview-math-level {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 800;
}

.preview-math-question {
  width: 78%;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  background-color: rgba(255, 255, 255, 0.08);
}

.preview-math-question span {
  color: var(--paper-color);
  font-size: 16px;
  font-weight: 700;
}

.preview-math-keypad {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  gap: 3px;
}

.preview-math-keypad span {
  width: 24px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--paper-color);
  font-size: 8px;
  font-weight: 700;
}

.preview-math-keypad span:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.preview-math-keypad .preview-math-enter {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}


.preview-visual-memory {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
}

.preview-visual-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.preview-visual-texts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-visual-level {
  color: var(--paper-color);
  font-size: 10px;
  font-weight: 800;
}

.preview-visual-instruction {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 700;
}

.preview-visual-icons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.preview-visual-icon {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1;
}

.preview-visual-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.preview-visual-bar span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: 999px;
  background-color: var(--accent-color);
}

.preview-visual-grid {
  width: 126px;
  margin: 2px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.preview-visual-grid span {
  width: 38px;
  height: 38px;
  display: block;
  position: relative;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(21, 50, 67, 0.08);
}

.preview-visual-circle::after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  top: 9px;
  left: 9px;
  border-radius: 50%;
  background-color: var(--accent-color);
}

.preview-visual-triangle::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 18px solid #4e6f8d;
}

/* COOKIE */

#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #344858;
  color: var(--mainBackground-color);
  padding: 10px;
  border-top: 1px solid #ccc;
  text-align: center;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.cookie-link {
  color: var(--paper-color);
  text-decoration: underline;
}

.cookie-btn {
  padding: 2px 8px;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  background-color: var(--paper-color);
  color: var(--primary-dark);
}

/* FOOTER */

footer {
  width: 100%;
  height: 360px;
  background-color: var(--primary-dark);
  color: #f0f0f0;
  margin-top: 90px;
  position: relative;
}

.footer-items {
  width: 100%;
  height: 70%;
  display: flex;
}

.footer-logo {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  color: #f0f0f0;
}

.footer-logo-name {
  font-size: 46px;
  font-family: "Montserrat", sans-serif;
  color: #f0f0f0;
}

.footer-logo::after {
  content: "";
  width: 100%;
  height: 60%;
  position: absolute;
  left: 0;
  top: 20%;
  border-right: 1px solid #f0f0f0;
}

.slogan {
  color: #f0f0f0;
}

.footer-right {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-top: 100px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
}

.footer-contact span,
.footer-contact b {
  color: #f0f0f0;
}

.footer-contact a,
.blog a,
.credits a,
.legal a {
  color: #f0f0f0;
  text-decoration: none;
}

.footer-contact a:hover,
.blog a:hover,
.credits a:hover,
.legal a:hover {
  text-decoration: underline;
}

.blog-credits-legal {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

.legal {
  display: flex;
  flex-direction: column;
}

.legal h4 {
  color: #f0f0f0;
}

.footer-social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.footer-icon {
  width: 20px;
}

.footer-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  height: 12%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f0f0f0;
}

.footer-bottom p,
.footer-bottom small {
  color: #f0f0f0;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-grid-trainers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .container {
    width: 90%;
  }

  .section {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .main-head {
    margin-left: 0;
    text-align: center;
    width: calc(100% - 25px);
    position: relative;
    left: 0;
    transform: translateX(-20px);
  }

  #cookie-consent-banner {
    flex-direction: column;
  }

  .footer-logo {
    display: none;
  }

  .footer-right {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .home-container {
    width: 90%;
  }

  .home-hero {
    margin-top: 28px;
    padding: 34px 20px;
    border-radius: 20px;
  }

  .home-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-section-head > p {
    text-align: left;
  }

  .home-grid,
  .home-grid-trainers {
    grid-template-columns: 1fr;
  }

  .home-card {
    min-height: 280px;
  }

  .home-card-preview {
    height: 130px;
  }

  footer {
    height: auto;
    min-height: 360px;
  }

  .footer-items {
    height: auto;
    min-height: 300px;
  }
}

@media (max-width: 425px) {
  .home-hero h1 {
    font-size: 38px;
  }

  .home-hero-text {
    font-size: 16px;
  }

  .home-card-body {
    padding: 16px;
  }
}

@media (max-width: 320px) {
  .home-card h3 {
    font-size: 19px;
  }
}

@media (max-height: 425px) {
  .sidebar {
    overflow-y: auto;
  }
}



.home-hero {
  margin: 36px auto 54px;
  padding: 34px 24px 42px;
  text-align: center;
  border-bottom: 1px solid rgba(21, 50, 67, 0.16);
  color: var(--hero-title-color);
  padding-bottom: 80px;
}

.home-kicker {
  margin-bottom: 18px;
}

.home-hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;
  font-size: clamp(42px, 5.4vw, 60px);
  line-height: 1.05;
  color: var(--hero-title-color);
  letter-spacing: -0.04em;
}

.home-hero-text {
  max-width: 620px;
  margin: 0 auto;
  color: #344858;
  font-size: 18px;
}



.home-hero-divider {
  width: 320px;
  height: 3px;
  margin: 44px auto;
  margin-top: 54px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    #d94f5c,
    var(--accent-color),
    transparent
  );
}