/* Extracted from the design's lift-life-pages/micro-quizzes.html inline <style>.
   Loaded after learning.css (compiled Tailwind). Wrapped in @layer base so these
   page styles beat Tailwind preflight (same layer, later order) but do NOT
   override the header/footer utility classes in @layer utilities. */

@layer base {

:root {
  --orange: #ff5a1f;
  --orange-dark: #e64a0f;
  --black: #111111;
  --cream: #fff4ec;
  --gray: #6b7280;
  --border: #ececec;
  --green: #1dbf73;
  --teal: #0e9f8f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--black);
  background: #fff;
  line-height: 1.5;
}

h1,
h2,
h3,
.display {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}


.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
}

.logo .dot {
  width: 16px;
  height: 16px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
}

.logo .life {
  color: var(--orange);
  font-style: italic;
  font-weight: 500;
}



.signin {
  border: 1.5px solid var(--black);
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  padding: 56px 32px 40px;
  align-items: start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--black);
  margin-bottom: 18px;
}

.eyebrow .ring {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid var(--orange);
  position: relative;
}

.eyebrow .ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--orange);
  border-radius: 50%;
}

h1.display {
  font-size: 50px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.jagged {
  background: var(--black);
  color: #fff;
  padding: 2px 14px;
  display: inline-block;
  clip-path: polygon(0% 15%,
      4% 0%,
      10% 12%,
      16% 0%,
      22% 12%,
      28% 0%,
      34% 12%,
      40% 0%,
      46% 12%,
      52% 0%,
      58% 12%,
      64% 0%,
      70% 12%,
      76% 0%,
      82% 12%,
      88% 0%,
      94% 12%,
      100% 0%,
      100% 85%,
      96% 100%,
      90% 88%,
      84% 100%,
      78% 88%,
      72% 100%,
      66% 88%,
      60% 100%,
      54% 88%,
      48% 100%,
      42% 88%,
      36% 100%,
      30% 88%,
      24% 100%,
      18% 88%,
      12% 100%,
      6% 88%,
      0% 100%);
}

.orange-text {
  color: var(--orange);
}

.subtext {
  font-size: 17px;
  color: #333;
  max-width: 480px;
  margin-bottom: 30px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 16px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.28);
}

.cta:hover {
  background: var(--orange-dark);
}

.stats-row {
  display: flex;
  gap: 30px;
  margin-top: 32px;
}

.stats-row div b {
  display: block;
  font-family: "Space Grotesk";
  font-size: 22px;
}

.stats-row div span {
  font-size: 12px;
  color: var(--gray);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
}

.tab.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.progress-line {
  height: 6px;
  background: #f1f1f1;
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-line span {
  display: block;
  height: 100%;
  background: var(--orange);
  width: 0%;
  transition: width 0.4s ease;
}

.qcount {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.qtext {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  min-height: 44px;
}

.opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
}

.opt:hover {
  border-color: var(--orange);
}

.opt.correct {
  border-color: var(--green);
  background: #effbf4;
  font-weight: 700;
}

.opt.wrong {
  border-color: #e5484d;
  background: #fdecec;
}

.result {
  display: none;
  text-align: center;
}

.result.show {
  display: block;
}

.ring-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 6px auto 16px;
}

.ring-wrap svg {
  transform: rotate(-90deg);
}

.ring-bg {
  stroke: #f1f1f1;
}

.ring-fg {
  stroke: var(--orange);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s ease;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-center b {
  font-size: 30px;
  font-family: "Space Grotesk";
}

.ring-center span {
  font-size: 11px;
  color: var(--gray);
}

.result h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.result p.small {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 18px;
}

.trait-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  text-align: left;
}

.trait-row .label {
  width: 100px;
  font-size: 12px;
  font-weight: 600;
}

.trait-row .bar {
  flex: 1;
  height: 8px;
  background: #f1f1f1;
  border-radius: 6px;
  overflow: hidden;
}

.trait-row .bar span {
  display: block;
  height: 100%;
  border-radius: 6px;
}

.retry-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--black);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* link to the real quiz engine (Django addition) */
.demo-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--gray);
}

.demo-note a {
  color: var(--orange);
  font-weight: 700;
}

.demo-note a:hover {
  color: var(--orange-dark);
}

/* domains grid */
.domains-sec {
  padding: 60px 32px;
  background: var(--cream);
}

.domains-sec h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.domains-sec p.lead {
  color: #444;
  margin-bottom: 30px;
  max-width: 600px;
}

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

.domain-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border);
}

.domain-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 10px;
}

.domain-card h3 {
  font-size: 14px;
  text-transform: none;
  margin-bottom: 4px;
}

.domain-card p {
  font-size: 12px;
  color: var(--gray);
}

.ocean-sec {
  padding: 56px 32px;
}

.ocean-sec h2 {
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
}

.ocean-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.ocean-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.ocean-card .letter {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-family: "Space Grotesk";
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.ocean-card h3 {
  font-size: 13px;
  margin-bottom: 6px;
  text-transform: none;
}

.ocean-card p {
  font-size: 12px;
  color: var(--gray);
}



@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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


  h1.display {
    font-size: 34px;
  }
}

/* keep legacy headings intact under Tailwind preflight */
body h1, body h2, body h3, body h4, body h5, body h6 { font-size: revert; font-weight: revert; }
body h1, body h2, body h3, body .display {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

}
