:root {
  --ink: #111111;
  --sun: #ffc61a;
  --coral: #ff5a3c;
  --cobalt: #2141d9;
  --mint: #2bb673;
  --cream: #fff6e0;
  --rule: 4px solid #111111;
  --offset: 10px 10px 0 #111111;
  --display-font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --text-font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--text-font);
  font-weight: 400;
  color: var(--ink);
  background: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

/* ---------- Screens ---------- */
.mind-screen {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.25rem;
  overflow: hidden;
  border-bottom: var(--rule);
}

.mind-screen-hero { background: var(--sun); }
.mind-screen-problem { background: var(--coral); }
.mind-screen-chapters { background: var(--cobalt); color: var(--cream); }
.mind-screen-order { background: var(--mint); }

.mind-bleed {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mind-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.mind-screen-order .mind-bleed { display: none; }

/* ---------- Panels ---------- */
.mind-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 38rem;
  background: rgba(255, 246, 224, 0.95);
  color: var(--ink);
  border: var(--rule);
  box-shadow: var(--offset);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.mind-panel-hero { background: var(--cream); }

.mind-screen-chapters .mind-panel {
  background: rgba(17, 17, 17, 0.9);
  color: var(--cream);
  box-shadow: 10px 10px 0 var(--sun);
}

.mind-screen-chapters .mind-chapter {
  border-color: var(--sun);
}

/* ---------- Typography ---------- */
.mind-kicker {
  margin: 0;
  display: inline-block;
  align-self: flex-start;
  background: var(--ink);
  color: var(--sun);
  padding: 0.35rem 0.9rem;
  font-weight: 700;
  font-size: 1rem;
  border: var(--rule);
}

.mind-title {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.mind-h2 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.2;
}

.mind-h3 {
  margin: 0.5rem 0 0;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.mind-lead,
.mind-text,
.mind-chapter p,
.mind-consent {
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.4rem);
  line-height: 1.6;
  max-width: 38rem;
}

.mind-chapter h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.mind-chapter p {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

/* ---------- Questions and lists ---------- */
.mind-questions,
.mind-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mind-questions li,
.mind-features li {
  position: relative;
  padding: 0.9rem 1.1rem 0.9rem 1.1rem;
  border: 3px solid var(--ink);
  background: var(--cream);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
}

.mind-features li {
  background: var(--sun);
  color: var(--ink);
  border-color: var(--ink);
}

.mind-chapters {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.mind-chapter {
  border: 3px solid var(--cream);
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- Quote ---------- */
.mind-quote {
  margin: 0.5rem 0 0;
  padding: 1.2rem 1.25rem;
  background: var(--sun);
  border: var(--rule);
  box-shadow: 6px 6px 0 var(--ink);
}

.mind-quote p {
  margin: 0 0 0.6rem;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.5;
}

.mind-quote cite {
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
}

/* ---------- Cover ---------- */
.mind-cover {
  position: relative;
  width: min(72vw, 17rem);
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--coral) 0%, var(--ink) 100%);
  color: var(--cream);
  border: var(--rule);
  box-shadow: 14px 14px 0 var(--ink);
  padding: 1.6rem 1.2rem 1.2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: center;
  overflow: hidden;
}

.mind-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 1.1rem;
  background: var(--sun);
  border-inline-end: var(--rule);
}

.mind-cover-small {
  width: min(60vw, 13rem);
  box-shadow: 10px 10px 0 var(--ink);
}

.mind-cover-tag {
  align-self: flex-start;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border: 2px solid var(--ink);
}

.mind-cover-title {
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.mind-cover-author {
  font-weight: 700;
  font-size: 1rem;
  border-top: 3px solid var(--sun);
  padding-top: 0.5rem;
}

/* ---------- CTA and button ---------- */
.mind-cta,
.mind-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 3.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--display-font);
  font-weight: 900;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--sun);
  background: var(--ink);
  border: var(--rule);
  box-shadow: 6px 6px 0 var(--coral);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mind-cta:hover,
.mind-submit:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--coral);
}

.mind-cta:active,
.mind-submit:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--coral);
}

/* ---------- Order ---------- */
.mind-order-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 62rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.mind-order-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.mind-order-intro .mind-text {
  color: var(--ink);
  font-weight: 600;
}

.mind-panel-form {
  max-width: 34rem;
}

.mind-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mind-form label {
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 0.4rem;
}

.mind-form input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.7rem 1rem;
  font-family: var(--text-font);
  font-size: 1.125rem;
  color: var(--ink);
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
}

.mind-form input[type="tel"] {
  direction: ltr;
  text-align: right;
}

.mind-form input::placeholder {
  color: #6b6b6b;
  opacity: 1;
}

.mind-form input:focus-visible {
  outline: 4px solid var(--cobalt);
  outline-offset: 3px;
}

.mind-form .mind-submit {
  align-self: stretch;
  justify-content: center;
  margin-top: 0.8rem;
  background: var(--ink);
  color: var(--mint);
}

.mind-consent {
  font-size: 1rem;
  margin-top: 0.4rem;
}

.mind-consent a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mind-screen-order .mind-panel {
  background: var(--cream);
}

/* ---------- Footer ---------- */
.mind-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  font-size: 1rem;
}

.mind-footer p {
  margin: 0;
  max-width: 38rem;
}

.mind-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.mind-footer-links a {
  color: var(--sun);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.2rem 0;
  border-bottom: 3px solid var(--sun);
}

.mind-footer-links a:hover {
  color: var(--cream);
  border-color: var(--cream);
}

.mind-small {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- Legal pages ---------- */
.legal-page {
  background: var(--cream);
}

.legal-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.legal-head {
  background: var(--sun);
  border: var(--rule);
  box-shadow: var(--offset);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.legal-title {
  margin: 0;
  font-family: var(--display-font);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.25;
}

.legal-section {
  background: #ffffff;
  border: 3px solid var(--ink);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}

.legal-section h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--coral);
}

.legal-section p {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-back {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--mint);
  border: var(--rule);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 0.7rem 1.2rem;
  text-decoration: none;
}

.legal-back:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .mind-panel {
    padding: 2.6rem 2.4rem;
  }

  .mind-chapters {
    grid-template-columns: 1fr 1fr;
  }

  .mind-order-wrap {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 3rem;
  }

  .mind-order-intro {
    flex: 0 1 18rem;
    justify-content: center;
  }

  .mind-panel-form {
    flex: 0 1 34rem;
  }

  .mind-screen-order {
    background: var(--mint);
  }
}

@media (min-width: 1100px) {
  .mind-screen {
    padding: 5rem 4rem;
  }

  .mind-panel {
    margin-inline-start: 6vw;
  }

  .mind-screen-problem .mind-panel,
  .mind-screen-chapters .mind-panel {
    margin-inline-start: auto;
    margin-inline-end: 6vw;
  }
}

@media (max-width: 359px) {
  .mind-cta,
  .mind-submit {
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
  }
}