/* ============================================================
   English Flow — home page extras
   1. A bright "start here" ribbon + cards so every visitor
      instantly sees the Tenses page and the Practice room.
   2. A more colourful quick-practice quiz.
   ============================================================ */

/* ---------- 1. Quick ribbon (right under the header) ---------- */
.quick-ribbon {
  background: linear-gradient(100deg, #fff1f6 0%, #fff7e8 42%, #eef4ff 100%);
  border-bottom: 1px solid #f1e7ef;
}
.quick-ribbon .section-shell {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 13px 0;
}
.qr-label { font-size: 10.5px; font-weight: 800; letter-spacing: 1.5px; color: #b0447e; }
.qr-link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px; background: #fff;
  border: 1.5px solid #f0dfe8; font-size: 13px; font-weight: 700; color: #2a3350;
  box-shadow: 0 6px 14px rgba(24, 46, 68, .06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.qr-link span { font-size: 16px; }
.qr-link b { font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.qr-tenses b { color: #0a7f6b; background: #e3faf1; }
.qr-practice b { color: #9a4bd6; background: #f4ecff; }
.qr-link:hover { transform: translateY(-2px); border-color: #ffbfd6; box-shadow: 0 12px 22px rgba(24, 46, 68, .1); }
.qr-spacer { margin-left: auto; font-size: 11.5px; color: #8a7f92; font-weight: 600; }

/* ---------- 2. Big "start here" cards ---------- */
.start-here { padding: 12px 0 92px; }
.start-here .sh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.start-here h2 { margin: 0; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.04; }
.start-here .sh-head > p { max-width: 330px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.sh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.sh-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 280px; padding: 28px 26px 26px; border-radius: 24px; color: #fff;
  transition: transform .26s ease, box-shadow .26s ease;
}
.sh-card::after {
  content: ""; position: absolute; right: -70px; bottom: -90px; width: 230px; height: 230px;
  border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.sh-card:hover { transform: translateY(-7px); box-shadow: 0 26px 46px rgba(24, 46, 68, .2); }
.sh-tenses { background: linear-gradient(135deg, #00b894 0%, #0ea5a5 55%, #3b82f6 100%); }
.sh-practice { background: linear-gradient(135deg, #8b5cf6 0%, #b5179e 55%, #ff6b4a 100%); }
.sh-library { background: linear-gradient(135deg, #f97316 0%, #ffb703 100%); }

.sh-emoji { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(255,255,255,.22); font-size: 27px; }
.sh-card h3 { position: relative; z-index: 1; margin: 20px 0 9px; color: #fff; font-family: Fraunces, Georgia, serif; font-size: 27px; line-height: 1.06; letter-spacing: -.04em; }
.sh-card p { position: relative; z-index: 1; margin: 0 0 18px; color: rgba(255,255,255,.9); font-size: 13.5px; line-height: 1.55; }
.sh-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.sh-tags span { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 10.5px; font-weight: 700; letter-spacing: .6px; }
.sh-go {
  position: relative; z-index: 1; margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 13px 20px; border-radius: 999px; background: #fff; color: #1d2544; font-size: 13px; font-weight: 800;
  transition: gap .2s;
}
.sh-card:hover .sh-go { gap: 16px; }

/* ---------- 3. A brighter quick-practice quiz ---------- */
.practice-section {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #6c2bd9 0%, #b5179e 52%, #ff6b4a 100%);
}
.practice-section::before,
.practice-section::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.practice-section::before { width: 320px; height: 320px; top: -120px; left: -70px; }
.practice-section::after { width: 240px; height: 240px; bottom: -120px; right: 5%; }
.practice-shell { position: relative; z-index: 1; }
.practice-intro .eyebrow-light { color: #ffd6ec; }
.practice-intro > p:not(.eyebrow) { color: rgba(255,255,255,.88); }
.streak-card { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.3); }
.streak-card small { color: rgba(255,255,255,.82); }

.quiz-card { padding: 28px 30px 24px; border-radius: 26px; box-shadow: 0 30px 60px rgba(40, 10, 60, .3); }
.quiz-top { color: #97a0b8; }
.quiz-top span:last-child { padding: 5px 11px; border-radius: 999px; color: #fff; background: linear-gradient(120deg, #8b5cf6, #ff4d8d); }
.quiz-progress { height: 9px; margin: 14px 0 26px; border-radius: 999px; background: #f0f2f8; }
.quiz-progress i { background: linear-gradient(90deg, #8b5cf6, #ff4d8d, #ff8a3d); transition: width .45s cubic-bezier(.22,1,.36,1); }
.quiz-prompt { font-size: clamp(21px, 2.3vw, 26px); color: #161d38; }

.answer-list { gap: 11px; }
.answer {
  padding: 15px 16px; border: 2px solid #eaedf6; border-radius: 16px;
  color: #33405f; font-size: 14.5px; font-weight: 600;
  transition: transform .16s, border-color .2s, background .2s;
}
.answer b { min-width: 32px; height: 32px; border: 0; border-radius: 11px; background: #f2f4fb; color: #7c87a6; font-size: 13px; font-weight: 800; }
.answer:hover { transform: translateX(3px); border-color: #c9d3f5; background: #fafbff; }
.answer.is-selected { border-color: #8b5cf6; background: #f6f1ff; color: #2b1b57; }
.answer.is-selected b { color: #fff; background: #8b5cf6; }
.answer.is-correct { border-color: #16c79a; background: #eafaf4; color: #0c6b52; animation: home-pop .35s; }
.answer.is-correct b { color: #fff; background: #16c79a; }
.answer.is-wrong { border-color: #ff6b81; background: #fff1f3; color: #ab2c42; animation: home-shake .35s; }
.answer.is-wrong b { color: #fff; background: #ff6b81; }
@keyframes home-pop { 0% { transform: scale(1); } 45% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes home-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.quiz-feedback { font-size: 13px; line-height: 1.55; }
.quiz-feedback.success { color: #12a87f; }
.quiz-feedback.error { color: #e0405f; }
.quiz-bottom { padding-top: 16px; border-top: 1.5px solid #f0f2f8; }
.quiz-bottom button {
  padding: 13px 22px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: linear-gradient(120deg, #8b5cf6, #ff4d8d);
  box-shadow: 0 12px 24px rgba(139, 92, 246, .3);
}
.quiz-bottom button:disabled { box-shadow: none; }
.quiz-after {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.quiz-after a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.34);
  color: #fff; font-size: 12.5px; font-weight: 700; transition: background .2s, transform .2s;
}
.quiz-after a:hover { background: rgba(255,255,255,.3); transform: translateY(-2px); }

/* ---------- responsive ---------- */
@media (max-width: 850px) {
  .sh-grid { grid-template-columns: 1fr 1fr; }
  .sh-library { grid-column: span 2; min-height: 220px; }
}
@media (max-width: 570px) {
  .quick-ribbon .section-shell { gap: 9px; padding: 12px 0; }
  .qr-label, .qr-spacer { display: none; }
  .qr-link { flex: 1 1 100%; justify-content: center; }
  .start-here { padding-bottom: 60px; }
  .sh-grid { grid-template-columns: 1fr; }
  .sh-library { grid-column: auto; }
  .sh-card { min-height: 240px; padding: 24px 22px; }
}

/* hero can now hold three actions */
.hero-actions { flex-wrap: wrap; gap: 14px 20px; }
.hero-actions .button-quiet { background: #fff; border-color: #cfe0dc; }
@media (max-width: 850px) {
  .practice-intro .quiz-after { justify-content: center; }
}

/* ============================================================
   WHAT IS THIS? 2D ACTION QUIZ — HOME SPOTLIGHT SHOWCASE
   ============================================================ */
.what-is-this-spotlight {
  padding: 30px 0 70px;
}

.wit-spotlight-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #0d1322 0%, #17183b 50%, #261338 100%);
  border: 1.5px solid #4f46e5;
  box-shadow: 0 25px 65px rgba(15, 23, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 38px 42px;
  color: #ffffff;
}

.wit-spotlight-card::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.wit-spotlight-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.wit-pill-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.2);
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #f472b6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.wit-pill-new .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3);
  display: inline-block;
}

.wit-pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c7d2fe;
  font-size: 11px;
  font-weight: 700;
}

.wit-spotlight-content {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 38px;
  align-items: center;
}

.wit-spotlight-copy h2 {
  font-size: clamp(28px, 3.8vw, 44px) !important;
  color: #ffffff !important;
  line-height: 1.08 !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.03em;
}

.wit-spotlight-copy h2 em {
  background: linear-gradient(120deg, #818cf8, #f472b6, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.wit-spotlight-lead {
  font-size: 15.5px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 24px;
  max-width: 530px;
}

.wit-spotlight-lead b {
  color: #fef08a;
}

.wit-feature-bullets {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.wit-bullet {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.wit-bullet-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(99, 102, 241, 0.4);
  font-size: 18px;
  flex-shrink: 0;
}

.wit-bullet strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.wit-bullet small {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

.wit-spotlight-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.wit-launch-btn {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%) !important;
  color: #ffffff !important;
  padding: 16px 28px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(168, 85, 247, 0.45) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wit-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(168, 85, 247, 0.6) !important;
}

.wit-free-label {
  font-size: 12px;
  font-weight: 700;
  color: #a5b4fc;
}

/* ---------- 2D Visual Preview Theater ---------- */
.wit-preview-theater {
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.wit-theater-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.wit-live-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.8px;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
}

.wit-timer {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
}

.wit-preview-stage {
  height: 190px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 40%, #1e293b 0%, #090d16 100%);
  border: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

/* Banana Cartoon Animation */
.wit-stage-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.banana-peel-animation {
  position: relative;
  width: 76px;
  height: 100px;
  animation: banana-bob 3s ease-in-out infinite;
}

@keyframes banana-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.banana-body {
  position: absolute;
  bottom: 0;
  left: 20px;
  width: 36px;
  height: 80px;
  background: #fde047;
  border: 3px solid #ca8a04;
  border-radius: 12px 12px 30px 30px;
  box-shadow: inset 4px 0 0 #fef08a, inset -4px 0 0 #eab308;
}

.banana-peel-left {
  position: absolute;
  top: 18px;
  left: 2px;
  width: 24px;
  height: 52px;
  background: #eab308;
  border: 2.5px solid #a16207;
  border-radius: 20px 4px 4px 20px;
  transform-origin: top right;
  animation: peel-left-anim 3s ease-in-out infinite;
}

@keyframes peel-left-anim {
  0%, 100% { transform: rotate(-35deg); }
  50% { transform: rotate(-55deg) scaleY(1.08); }
}

.banana-peel-right {
  position: absolute;
  top: 18px;
  right: 2px;
  width: 24px;
  height: 52px;
  background: #eab308;
  border: 2.5px solid #a16207;
  border-radius: 4px 20px 20px 4px;
  transform-origin: top left;
  animation: peel-right-anim 3s ease-in-out infinite;
}

@keyframes peel-right-anim {
  0%, 100% { transform: rotate(35deg); }
  50% { transform: rotate(55deg) scaleY(1.08); }
}

.peel-sparkle {
  position: absolute;
  color: #fef08a;
  font-size: 14px;
}
.peel-sparkle.s1 { top: -4px; right: -8px; }
.peel-sparkle.s2 { bottom: 20px; left: -14px; }

.wit-stage-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.wit-preview-quiz-prompt {
  margin-bottom: 12px;
}

.wit-preview-quiz-prompt small {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #818cf8;
}

.wit-preview-quiz-prompt p {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 3px 0 0;
}

.wit-preview-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.wit-mini-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}

.wit-mini-opt b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 10.5px;
}

.wit-correct-opt {
  background: rgba(16, 185, 129, 0.18) !important;
  border-color: #10b981 !important;
  color: #a7f3d0 !important;
}

.wit-correct-opt b {
  background: #10b981 !important;
  color: #ffffff !important;
}

.wit-correct-opt i {
  margin-left: auto;
  font-style: normal;
  font-weight: 900;
  color: #34d399;
}

.wit-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #1e293b;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .wit-spotlight-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .wit-spotlight-card {
    padding: 30px 24px;
  }
}

