:root {
  color-scheme: light dark;
  --canvas: #fff8f2;
  --canvas-deep: #f5e9df;
  --surface: #ffffff;
  --surface-muted: #f3ece6;
  --ink: #17110f;
  --muted: #70635d;
  --line: rgba(53, 34, 27, 0.13);
  --orange: #ff4d18;
  --orange-deep: #cf2809;
  --orange-soft: #ffe1d5;
  --lime: #d9ff63;
  --green: #248a3d;
  --shadow: 0 28px 80px rgba(65, 31, 20, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0c0a09;
    --canvas-deep: #171210;
    --surface: #1d1816;
    --surface-muted: #27201d;
    --ink: #fffaf6;
    --muted: #b8aaa3;
    --line: rgba(255, 255, 255, 0.12);
    --orange: #ff5d2b;
    --orange-deep: #d8320e;
    --orange-soft: #492317;
    --lime: #d9ff63;
    --green: #35c759;
    --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--canvas);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 4%, rgba(255, 77, 24, 0.13), transparent 31rem),
    var(--canvas);
}

a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header,
.hero,
.why-section,
.unlock-section,
.privacy-section,
.download-section,
.site-footer {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: max(24px, env(safe-area-inset-top)) 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--orange), var(--orange-deep));
  color: white;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 77, 24, 0.23);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
}

.main-nav a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(60, 31, 21, 0.07);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: center;
  min-height: 680px;
  padding-block: clamp(62px, 8vw, 108px) 100px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.eyebrow > span {
  width: 25px;
  height: 2px;
  background: currentColor;
}

.eyebrow.light {
  color: var(--lime);
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero h1 em {
  display: block;
  color: var(--orange);
  font-style: normal;
}

.hero-message {
  max-width: 650px;
  margin: 27px 0 30px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.google-play-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 160ms ease;
}

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

.google-play-badge:active {
  transform: scale(0.985);
}

.google-play-badge img {
  display: block;
  width: auto;
  height: 62px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 17px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 670;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(36, 138, 61, 0.12);
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 570px;
  place-items: center;
}

.hero-visual::before {
  position: absolute;
  width: 470px;
  height: 470px;
  border-radius: 42% 58% 56% 44% / 45% 42% 58% 55%;
  background: linear-gradient(145deg, var(--orange), var(--orange-deep));
  content: "";
  transform: rotate(-7deg);
  box-shadow: 0 30px 80px rgba(255, 77, 24, 0.25);
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(255, 77, 24, 0.4);
  border-radius: 50%;
}

.orbit-one {
  width: 540px;
  height: 540px;
  animation: rotate 40s linear infinite;
}

.orbit-two {
  width: 440px;
  height: 610px;
  animation: rotate-reverse 50s linear infinite;
}

.spark {
  position: absolute;
  z-index: 3;
  color: var(--lime);
  font-size: 34px;
  text-shadow: 0 8px 20px rgba(40, 20, 10, 0.24);
}

.spark-one {
  top: 38px;
  right: 30px;
}

.spark-two {
  bottom: 70px;
  left: 8px;
  font-size: 22px;
}

.quiz-preview {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 31px;
  background: #171311;
  color: #fffaf6;
  box-shadow: 0 35px 80px rgba(27, 12, 8, 0.35);
  transform: rotate(2.5deg);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b5a7a0;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.13em;
}

.preview-header strong {
  color: white;
  font-size: 17px;
  letter-spacing: 0;
}

.preview-header small {
  color: #8f817b;
  font-size: 12px;
}

.progress-track {
  height: 5px;
  margin: 13px 0 30px;
  overflow: hidden;
  border-radius: 99px;
  background: #332a27;
}

.progress-track span {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.preview-kicker {
  margin: 0 0 9px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.quiz-preview h2 {
  margin: 0 0 24px;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.preview-answers {
  display: grid;
  gap: 9px;
}

.preview-answers > span {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 9px 12px;
  border: 1px solid #3a302c;
  border-radius: 14px;
  background: #211b19;
  color: #d8cdc7;
  font-size: 14px;
  font-weight: 670;
}

.preview-answers b {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: #332a27;
  color: #bcaea8;
  font-size: 11px;
}

.preview-answers > span.selected {
  border-color: #56ca70;
  background: rgba(53, 199, 89, 0.13);
  color: white;
}

.preview-answers .selected b {
  background: #35c759;
  color: #112615;
}

.preview-answers i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #35c759;
  color: #112615;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.preview-result {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: center;
  margin-top: 14px;
  padding: 13px;
  border-radius: 15px;
  background: #2a221f;
}

.preview-result > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--orange);
}

.preview-result strong,
.preview-result small {
  display: block;
}

.preview-result strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.preview-result small {
  color: #a99b95;
  font-size: 10px;
}

.score-bubble {
  position: absolute;
  z-index: 4;
  right: -10px;
  bottom: 60px;
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  align-content: center;
  border: 6px solid var(--canvas);
  border-radius: 50%;
  background: var(--lime);
  color: #17110f;
  box-shadow: 0 18px 40px rgba(33, 20, 14, 0.22);
  transform: rotate(-8deg);
}

.score-bubble span {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.score-bubble strong {
  font-size: 27px;
  letter-spacing: -0.04em;
}

.category-ribbon {
  display: flex;
  gap: 24px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 18px 30px;
  overflow: hidden;
  background: var(--ink);
  color: var(--canvas);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.category-ribbon i {
  color: var(--orange);
  font-style: normal;
}

.why-section {
  padding-block: clamp(92px, 12vw, 154px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -28px;
}

.section-heading h2,
.unlock-copy h2,
.privacy-section h2,
.download-section h2 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child,
.unlock-copy > p,
.privacy-section > div > p:last-child,
.download-section > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

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

.feature-card {
  position: relative;
  min-height: 410px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.feature-card h3 {
  margin: 30px 0 10px;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.75;
}

.feature-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  opacity: 0.65;
}

.feature-orange {
  background: linear-gradient(145deg, var(--orange), var(--orange-deep));
  color: white;
}

.feature-dark {
  background: #181311;
  color: white;
}

.feature-light {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.feature-symbol {
  display: grid;
  width: 154px;
  height: 154px;
  margin: 26px auto 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 78px;
  font-weight: 900;
  transform: rotate(9deg);
}

.feedback-demo {
  position: relative;
  height: 182px;
  margin-top: 27px;
}

.feedback-demo span {
  position: absolute;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border-radius: 50%;
  font-size: 52px;
  font-weight: 900;
}

.feedback-demo .correct {
  top: 3px;
  left: 30px;
  background: var(--lime);
  color: #142313;
  transform: rotate(-8deg);
}

.feedback-demo .incorrect {
  right: 25px;
  bottom: 0;
  border: 1px solid #51423c;
  background: #29211e;
  color: var(--orange);
  transform: rotate(10deg);
}

.progress-demo {
  display: flex;
  gap: 15px;
  align-items: end;
  justify-content: center;
  height: 180px;
  margin-top: 28px;
  padding: 18px 20px 0;
  border-bottom: 1px solid var(--line);
}

.progress-demo span {
  width: 42px;
  border-radius: 12px 12px 3px 3px;
  background: linear-gradient(var(--orange), var(--orange-deep));
}

.progress-demo span:nth-child(1) { height: 44%; opacity: 0.42; }
.progress-demo span:nth-child(2) { height: 68%; opacity: 0.6; }
.progress-demo span:nth-child(3) { height: 88%; opacity: 0.78; }
.progress-demo span:nth-child(4) { height: 100%; }

.unlock-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(50px, 8vw, 100px);
  align-items: center;
  padding: clamp(54px, 8vw, 94px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 77, 24, 0.34), transparent 25rem),
    #171210;
  color: #fffaf6;
  box-shadow: var(--shadow);
}

.unlock-copy > p {
  margin: 23px 0 26px;
  color: #b7aaa4;
}

.text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--lime);
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
}

.unlock-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.unlock-steps li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  padding-block: 23px;
}

.unlock-steps li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.unlock-steps li > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--orange);
  color: white;
  font-size: 14px;
  font-weight: 850;
  transform: rotate(-4deg);
}

.unlock-steps strong {
  font-size: 18px;
}

.unlock-steps p {
  margin: 6px 0 0;
  color: #a99c96;
  font-size: 14px;
  line-height: 1.5;
}

.privacy-section {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 35px;
  align-items: center;
  padding-block: clamp(92px, 12vw, 150px);
}

.privacy-mark {
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 31px;
  background: var(--surface);
  color: var(--orange);
  font-size: 43px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

.privacy-section h2 {
  font-size: clamp(38px, 5vw, 62px);
}

.privacy-section > div > p:last-child {
  max-width: 670px;
  margin-top: 18px;
}

.privacy-section > a {
  align-self: end;
  color: var(--orange);
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.download-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
  padding: clamp(44px, 7vw, 78px);
  border-radius: 38px;
  background: linear-gradient(145deg, var(--orange), var(--orange-deep));
  color: white;
  box-shadow: 0 30px 80px rgba(255, 77, 24, 0.22);
}

.download-section h2 {
  max-width: 700px;
}

.download-section > div > p:last-child {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.store-buttons-footer {
  max-width: 410px;
  justify-content: flex-end;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-block: 38px max(42px, env(safe-area-inset-bottom));
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  justify-self: end;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  to { transform: rotate(-360deg); }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 70px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 610px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading .eyebrow {
    grid-column: auto;
    margin-bottom: -4px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
  }

  .unlock-section {
    grid-template-columns: 1fr;
  }

  .privacy-section {
    grid-template-columns: 100px 1fr;
  }

  .privacy-section > a {
    grid-column: 2;
    justify-self: start;
  }

  .download-section {
    grid-template-columns: 1fr;
  }

  .store-buttons-footer {
    max-width: none;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .why-section,
  .unlock-section,
  .privacy-section,
  .download-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    gap: 12px;
  }

  .header-cta {
    padding: 10px 13px;
  }

  .hero {
    min-height: auto;
    padding-block: 54px 76px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 67px);
  }

  .trust-row {
    display: grid;
  }

  .hero-visual {
    min-height: 540px;
    margin-inline: -5px;
  }

  .hero-visual::before {
    width: 360px;
    height: 430px;
  }

  .orbit-one {
    width: 390px;
    height: 490px;
  }

  .orbit-two {
    width: 330px;
    height: 530px;
  }

  .quiz-preview {
    width: min(100%, 350px);
    padding: 20px;
  }

  .quiz-preview h2 {
    font-size: 25px;
  }

  .score-bubble {
    right: -3px;
    bottom: 30px;
    width: 93px;
    height: 93px;
  }

  .category-ribbon {
    gap: 18px;
    font-size: 12px;
  }

  .why-section {
    padding-block: 90px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:last-child {
    grid-column: auto;
  }

  .unlock-section {
    gap: 35px;
    padding: 34px 24px;
    border-radius: 29px;
  }

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

  .privacy-section > a {
    grid-column: auto;
  }

  .download-section {
    padding: 36px 23px;
    border-radius: 29px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-self: start;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --line: currentColor;
  }

  .feature-card,
  .quiz-preview,
  .unlock-section,
  .download-section {
    border-width: 2px;
  }
}
