/* Home page extras: split hero, floating visual, marquee, subject grid, CTA decor */

.hero-dots {
  position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none;
  background-image: radial-gradient(rgba(76,29,149,0.16) 1px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: .5;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: var(--tv-violet-tint); color: var(--tv-violet); border: 1px solid #DDD1FA;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
@keyframes hb-pulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* word-by-word headline */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Floating visual ---------- */
.hero-visual { position: relative; height: 470px; width: 100%; max-width: 500px; margin: 0 auto; }
.hv-card {
  position: absolute; background: #fff; border: 1px solid var(--tv-line); border-radius: 18px;
  padding: 18px; box-shadow: 0 2px 4px rgba(20,16,31,.05), 0 28px 50px -22px rgba(20,16,31,.35);
  will-change: transform;
}
.hv-card.c1 { top: 24px;  left: 0;     width: 210px; z-index: 1; }
.hv-card.c3 { top: 70px;  right: 0;    width: 210px; z-index: 1; }
.hv-card.c2 { top: 110px; left: 50%; margin-left: -150px; width: 300px; z-index: 3; }
.hv-row { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--tv-ink-soft); margin-top: .55rem; }
.hv-row i { width: 16px; text-align: center; color: var(--tv-violet); }
.hv-avatar { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; background: var(--tv-violet-tint); color: var(--tv-violet); }
.hv-avatar.dark { background: var(--tv-violet); color: #fff; }
.hv-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.05rem; color: var(--tv-ink); line-height: 1.2; }
.hv-sub { font-size: .75rem; color: var(--tv-ink-soft); }
.hv-pill { display: block; text-align: center; margin-top: 1rem; padding: .55rem; border-radius: 10px; background: var(--tv-violet); color: #fff; font-size: .8rem; font-weight: 600; }
.hv-bar { height: 6px; border-radius: 999px; background: var(--tv-line); margin-top: .7rem; overflow: hidden; }
.hv-bar > i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, var(--tv-violet), #8B5CF6); }
.hv-stars { color: #F59E0B; letter-spacing: 2px; font-size: .8rem; }

.hv-chip { position: absolute; z-index: 4; }
.hv-chip .hv-in {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  padding: .5rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--tv-line);
  font-size: .78rem; font-weight: 700; color: var(--tv-ink);
  box-shadow: 0 12px 28px -12px rgba(20,16,31,.35);
}
.hv-chip .hv-in i { color: var(--tv-violet); }
.hv-chip.round .hv-in { width: 54px; height: 54px; padding: 0; justify-content: center; font-size: 1.25rem; border-radius: 16px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--tv-line); border-bottom: 1px solid var(--tv-line); background: #fff; padding: 1rem 0; }
.marquee-track { display: flex; width: max-content; will-change: transform; animation: tv-marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: .6rem; padding: 0 1.6rem; font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; font-weight: 600; color: var(--tv-ink-soft); white-space: nowrap; }
.marquee-item i { color: var(--tv-violet); font-size: .95rem; }
.marquee-item::after { content: "✦"; margin-left: 3.2rem; color: #C4B5FD; font-size: .8rem; }
@keyframes tv-marquee { to { transform: translateX(-50%); } }

/* ---------- Steps connector ---------- */
.steps-wrap { position: relative; }
.steps-line { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: linear-gradient(90deg, var(--tv-violet), #8B5CF6); transform-origin: 0 50%; z-index: 0; border-radius: 2px; }
.steps-wrap .tv-step-number { position: relative; z-index: 1; background: var(--tv-paper); padding-right: 14px; }
.step { position: relative; z-index: 1; }

/* ---------- Subject grid ---------- */
.subject-card {
  display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem; text-decoration: none;
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow 260ms ease, border-color 260ms ease !important;
}
.subject-card .ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: var(--tv-violet-tint); color: var(--tv-violet); transition: background 250ms, color 250ms, transform 300ms; }
.subject-card:hover .ic { background: var(--tv-violet); color: #fff; transform: translateY(-3px) rotate(-8deg); }
.subject-card .go { margin-top: auto; font-size: .8rem; font-weight: 600; color: var(--tv-violet); display: inline-flex; gap: .4rem; align-items: center; }
.subject-card .go i { transition: transform 250ms; }
.subject-card:hover .go i { transform: translateX(5px); }

.city-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--tv-line); font-weight: 600; font-size: .9rem; text-decoration: none; transition: all 220ms ease; }
.city-chip i { color: var(--tv-violet); }
.city-chip:hover { background: var(--tv-violet); color: #fff; border-color: var(--tv-violet); transform: translateY(-3px); box-shadow: 0 12px 22px -10px rgba(76,29,149,.5); }
.city-chip:hover i { color: #fff; }

/* ---------- CTA decor ---------- */
.cta { position: relative; overflow: hidden; }
.cta > * { position: relative; z-index: 1; }
.cta .cta-ic { position: absolute !important; z-index: 0 !important; color: rgba(167,159,194,.22); font-size: 2.6rem; pointer-events: none; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 80% at 50% 0%, rgba(139,92,246,.28), transparent 70%); }

@media (max-width: 767px) {
  .hero-visual { height: 400px; transform: scale(.86); transform-origin: top center; margin-bottom: -50px; }
  .hv-card.c1, .hv-card.c3 { width: 170px; }
  .hv-card.c2 { width: 270px; margin-left: -135px; }
  .hv-chip.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-badge .dot { animation: none !important; }
}

/* ---------- FAQ ---------- */
.faq-item { background: var(--tv-paper); border: 1px solid var(--tv-line); border-radius: 14px; padding: 0 1.25rem; transition: border-color 200ms ease, box-shadow 200ms ease; }
.faq-item[open] { border-color: #D8C9FB; box-shadow: 0 10px 24px -16px rgba(76,29,149,.35); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--tv-violet); transition: transform 200ms ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.2rem; color: var(--tv-ink-soft); line-height: 1.7; font-size: .95rem; }

.hv-example { position: absolute; top: 10px; right: 12px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-ink-soft); background: #F1EEF6; padding: .15rem .5rem; border-radius: 999px; }
