/* ==========================================================================
   Room Ready — styles
   Mobile-first. Colours, fonts and the "cartoon" look all live in :root,
   so you can tweak the whole site from here.
   ========================================================================== */

:root {
  --cream: #fff8e7;
  --cream-2: #ffefc9;
  --white: #ffffff;
  --navy: #1b2a4a;
  --navy-soft: #3a4a6b;
  --yellow: #ffd23f;
  --yellow-2: #ffe27a;
  --teal: #2ec4b6;
  --teal-light: #c9f1ec;
  --purple: #5b3fd1;
  --purple-light: #e1d8ff;
  --blush: #ff9eb0;
  --skin-1: #f2b48c;
  --skin-2: #b97a56;

  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --line: 3px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 4px 4px 0 var(--navy);
  --shadow-lg: 6px 6px 0 var(--navy);

  --gutter: 20px;
  --max: 1100px;
}

/* ---------- Base ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 8.5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.85rem, 6vw, 2.75rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--purple);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--yellow);
  color: var(--navy);
  border: var(--line) solid var(--navy);
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 64px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head p {
  color: var(--navy-soft);
  font-size: 1.125rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
  box-shadow: 3px 3px 0 var(--navy);
}

.highlight {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 0.08em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  background: var(--yellow);
  border: var(--line) solid var(--navy);
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.btn:hover {
  color: var(--navy);
  background: var(--yellow-2);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--navy);
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
  }
  .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-lg);
  }
  .btn:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--navy);
  }
}

.btn-sm {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  width: 20px;
  height: 20px;
  flex: none;
}

.cta-note {
  margin: 12px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-soft);
}

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ---------- Header ---------- */

.site-header {
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-link {
  color: var(--navy);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

.logo svg {
  width: 40px;
  height: 40px;
  flex: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 16px 0 56px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-copy .sub {
  font-size: 1.2rem;
  color: var(--navy-soft);
  max-width: 34ch;
  margin-bottom: 28px;
}

.hero-art {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

/* Hero speech bubbles: gentle pop-in, then a little float. */
@media (prefers-reduced-motion: no-preference) {
  .bubble-recruiter {
    animation: pop 0.5s 0.3s both cubic-bezier(0.34, 1.56, 0.64, 1), float 4s 1s ease-in-out infinite;
    transform-origin: 70% 100%;
    transform-box: fill-box;
  }
  .bubble-student {
    animation: pop 0.5s 1.4s both cubic-bezier(0.34, 1.56, 0.64, 1), float 4s 2.2s ease-in-out infinite;
    transform-origin: 30% 100%;
    transform-box: fill-box;
  }
  .sparkle {
    animation: twinkle 2.4s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
  }
  .sparkle:nth-of-type(2) {
    animation-delay: 0.8s;
  }
  .sparkle:nth-of-type(3) {
    animation-delay: 1.6s;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.6);
    opacity: 0.6;
  }
}

/* ---------- Problem ---------- */

.problem {
  background: var(--purple-light);
  border-top: var(--line) solid var(--navy);
  border-bottom: var(--line) solid var(--navy);
}

.moment-grid {
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.moment {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.moment p {
  margin: 0;
  font-weight: 700;
  font-size: 1.125rem;
}

.icon-badge {
  flex: none;
  width: 56px;
  height: 56px;
  border: var(--line) solid var(--navy);
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--yellow);
}

.icon-badge svg {
  width: 32px;
  height: 32px;
}

.icon-badge.teal {
  background: var(--teal);
}

.icon-badge.purple {
  background: var(--purple-light);
}

.icon-badge.cream {
  background: var(--cream-2);
}

.problem-kicker {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 36px auto 0;
  max-width: 30ch;
}

/* ---------- Before / after ---------- */

.compare {
  display: grid;
  gap: 24px;
}

.chat-card {
  padding: 22px 20px 26px;
}

.chat-card.before {
  background: #f1eee6;
}

.chat-card.after {
  background: var(--teal-light);
}

.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 2px 14px;
  border: var(--line) solid var(--navy);
  border-radius: 999px;
  margin-bottom: 18px;
  background: var(--white);
}

.after .tag {
  background: var(--teal);
}

.chat {
  display: grid;
  gap: 14px;
}

.msg {
  max-width: 88%;
  border: var(--line) solid var(--navy);
  border-radius: 20px;
  padding: 12px 16px;
  background: var(--white);
  position: relative;
}

.msg .who {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-soft);
  margin-bottom: 2px;
}

.msg p {
  margin: 0;
  font-weight: 700;
}

.msg.them {
  justify-self: start;
  border-bottom-left-radius: 6px;
}

.msg.you {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: var(--yellow);
}

.before .msg.you {
  background: #e3dfd4;
}

.before .msg.you p {
  font-size: 1.15rem;
}

.compare-caption {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  margin: 40px 0 0;
}

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

.how {
  background: var(--cream-2);
  border-top: var(--line) solid var(--navy);
  border-bottom: var(--line) solid var(--navy);
}

.steps {
  display: grid;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 30px;
}

.step-num {
  position: absolute;
  top: -22px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: var(--line) solid var(--navy);
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
}

.step:nth-child(2) .step-num {
  background: var(--teal);
}

.step:nth-child(3) .step-num {
  background: var(--purple-light);
}

.step h3 {
  margin-top: 6px;
}

.step p {
  margin: 0;
  color: var(--navy-soft);
}

.steps-wrap {
  padding-top: 22px;
}

/* Video placeholder — swap for a real <video> or embed later. */
.video-slot {
  margin: 48px auto 0;
  max-width: 760px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border: var(--line) solid var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.video-frame .play {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
}

.video-frame p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
}

.video-frame a {
  color: var(--yellow);
}

.video-frame a:hover {
  color: var(--white);
}

.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Curriculum ---------- */

.weeks {
  display: grid;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.week {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.week-top {
  padding: 16px 22px;
  border-bottom: var(--line) solid var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-head);
  font-weight: 700;
}

.week-top .days {
  font-weight: 500;
  font-size: 0.95rem;
}

.week:nth-child(1) .week-top {
  background: var(--yellow);
}
.week:nth-child(2) .week-top {
  background: var(--teal);
}
.week:nth-child(3) .week-top {
  background: var(--purple-light);
}
.week:nth-child(4) .week-top {
  background: var(--blush);
}

.week-body {
  padding: 20px 22px 24px;
}

.week-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.week-body p {
  margin: 0;
  color: var(--navy-soft);
}

/* ---------- Inside each lesson ---------- */

.inside {
  background: var(--teal-light);
  border-top: var(--line) solid var(--navy);
  border-bottom: var(--line) solid var(--navy);
}

.inside-grid {
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.inside-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
}

.inside-item h3 {
  margin: 2px 0 4px;
  font-size: 1.2rem;
}

.inside-item p {
  margin: 0;
  color: var(--navy-soft);
  font-size: 1rem;
}

.time-pill {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.time-pill span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 3px 3px 0 var(--navy);
}

.time-pill svg {
  width: 24px;
  height: 24px;
}

/* ---------- Pricing ---------- */

.price-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--navy);
}

.price-top {
  background: var(--yellow);
  border-bottom: var(--line) solid var(--navy);
  padding: 24px 24px 20px;
  text-align: center;
}

.price-top h3 {
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 2px;
}

.price .amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 1;
}

.price .currency {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
}

.price-type {
  margin: 0;
  font-weight: 800;
}

.price-body {
  padding: 24px;
}

.founding-note {
  background: var(--purple-light);
  border: var(--line) solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.spots-left {
  text-align: center;
  font-weight: 800;
  margin: -6px 0 18px;
}

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

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
}

.checklist svg {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
}

.price-alt {
  text-align: center;
  margin: 18px 0 0;
  font-weight: 700;
}

.secure-note {
  text-align: center;
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--navy-soft);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--navy);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 56px 16px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  position: relative;
  border-radius: var(--radius-sm);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  translate: 0 -50%;
  width: 30px;
  height: 30px;
  border: var(--line) solid var(--navy);
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
  background: var(--teal);
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-answer p {
  margin: 0;
  color: var(--navy-soft);
}

/* ---------- Final CTA ---------- */

.final {
  background: var(--navy);
  color: var(--cream);
  text-align: center;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.final h2 {
  max-width: 18ch;
  margin: 0 auto 28px;
  color: var(--cream);
}

.final .highlight {
  background: none;
  color: var(--yellow);
}

.final .cta-note {
  color: var(--cream-2);
}

.final .btn {
  box-shadow: 4px 4px 0 var(--teal);
}

@media (prefers-reduced-motion: no-preference) {
  .final .btn:hover {
    box-shadow: 6px 6px 0 var(--teal);
  }
}

.final .btn:active {
  box-shadow: 1px 1px 0 var(--teal);
}

.final :focus-visible {
  outline-color: var(--yellow);
}

.final-door {
  width: 96px;
  margin: 0 auto 20px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream);
  border-top: var(--line) solid var(--navy);
  padding: 36px 0 40px;
}

.site-footer .container {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--navy);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.footer-links svg {
  width: 22px;
  height: 22px;
}

.copyright {
  margin: 0;
  font-size: 0.95rem;
  color: var(--navy-soft);
}

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  transform: translateY(140%);
}

.sticky-cta.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .sticky-cta {
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
}

.sticky-cta .btn {
  width: 100%;
  box-shadow: 4px 4px 0 var(--navy);
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 24px 0 72px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(2rem, 7vw, 3rem);
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 1.8em;
}

.legal ul {
  padding-left: 1.3em;
}

.legal li {
  margin-bottom: 0.5em;
}

.legal .updated {
  color: var(--navy-soft);
  font-weight: 700;
}

.notice {
  background: var(--yellow);
  border: var(--line) solid var(--navy);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--navy);
  padding: 14px 18px;
  font-weight: 700;
  margin: 0 0 28px;
}

.placeholder {
  background: var(--purple-light);
  border: 2px dashed var(--purple);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 800;
  white-space: nowrap;
}

/* ==========================================================================
   Larger screens
   ========================================================================== */

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
  }

  .moment-grid,
  .inside-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .weeks {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-hero {
    min-width: 280px;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }

  .hero {
    padding: 32px 0 88px;
  }

  .hero .container {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }

  .compare {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .inside-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .weeks {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-footer .container {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .copyright {
    grid-column: 1 / -1;
  }

  /* The sticky button is for phones only. */
  .sticky-cta {
    display: none;
  }
}
