/* ============================================================
   home.css — Quizground-style landing (inspired by quizzes.today)
   Used only on the main index.html landing page.
   ============================================================ */

/* ── Hero (modern welcome block) ───────────────────────────── */
.home-hero {
  position: relative;
  text-align: center;
  padding: clamp(56px, 10vw, 96px) 20px clamp(64px, 12vw, 112px);
  overflow: hidden;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(37, 99, 235, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(37, 99, 235, 0.05), transparent);
  pointer-events: none;
}
[data-theme="dark"] .home-hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(59, 130, 246, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(59, 130, 246, 0.06), transparent);
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.home-hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 100px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}
[data-theme="dark"] .home-hero-label {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
}
.home-hero-title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 20px;
}
.home-hero-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 36px;
}
.home-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.home-hero-cta-primary {
  padding: 14px 28px;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.home-hero-cta-primary:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
[data-theme="dark"] .home-hero-cta-primary {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.home-hero-cta-secondary {
  padding: 12px 20px;
  font-size: 0.9rem;
}
@media (max-width: 520px) {
  .home-hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .home-hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}
.home-hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.home-hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow);
}
[data-theme="dark"] .home-hero-trust-pill {
  background: var(--white);
  color: var(--subtle);
}
.home-hero-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* ── Info section (after hero) ───────────────────────────── */
.home-info {
  padding: 48px 20px 56px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
[data-theme="dark"] .home-info {
  background: var(--bg);
  border-top-color: var(--border);
}
.home-info-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.home-info-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
}
.home-info-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 28px;
}
.home-info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 720px) {
  .home-info-columns {
    grid-template-columns: 1fr;
  }
}
.home-info-col--tools .home-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.home-info-col--dashboard .home-info-item--dashboard {
  position: sticky;
  top: 80px;
}
.home-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.home-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--subtle);
  line-height: 1.5;
  padding: 14px 18px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
[data-theme="dark"] .home-info-item {
  background: var(--white);
}
.home-info-item strong {
  color: var(--text);
  flex-shrink: 0;
  min-width: 5.5em;
}
.home-info-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.home-info-item--dashboard .home-info-icon {
  margin-top: 2px;
}
.home-info-item--dashboard strong,
.home-info-item--premium strong {
  min-width: 0;
}
.home-info-item--premium .home-info-icon {
  margin-top: 2px;
}
.home-info-dashboard-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.home-info-dashboard-link:hover {
  text-decoration: underline;
}

/* ── Premium services slider (full-width, before What you get) ── */
.premium-slider-mount {
  overflow-x: hidden;
}
.premium-services-slider {
  margin-top: 48px;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(37, 99, 235, 0.02) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .premium-services-slider {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-top-color: var(--border);
  border-bottom-color: var(--border);
}

.premium-slider-viewport {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.premium-slider-track {
  display: flex;
  width: 300%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.premium-slide {
  flex: 0 0 33.333%;
  width: 33.333%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: 380px;
}
@media (max-width: 768px) {
  .premium-slide {
    grid-template-columns: 1fr;
    min-height: 420px;
  }
}

.premium-slide-media {
  position: relative;
  /* height: 380px; */
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  overflow: hidden;
}
[data-theme="dark"] .premium-slide-media {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04));
}
@media (max-width: 768px) {
  .premium-slide-media {
    height: 200px;
    order: -1;
  }
}

.premium-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.premium-slide-media img[src=""],
.premium-slide-media img:not([src]) {
  display: none;
}

/* Placeholder when no image: subtle pattern */
.premium-slide-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(37, 99, 235, 0.06) 50%, transparent 60%),
    linear-gradient(225deg, transparent 40%, rgba(37, 99, 235, 0.04) 50%, transparent 60%);
}
[data-theme="dark"] .premium-slide-placeholder {
  background:
    linear-gradient(135deg, transparent 40%, rgba(59, 130, 246, 0.08) 50%, transparent 60%),
    linear-gradient(225deg, transparent 40%, rgba(59, 130, 246, 0.05) 50%, transparent 60%);
}

.premium-slide-content {
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.premium-slide-content h3 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.premium-slide-content p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 480px;
}

.premium-slide-content .premium-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}
.premium-slide-content .premium-slide-cta:hover {
  gap: 12px;
  text-decoration: none;
}

/* Nav buttons */
.premium-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}
[data-theme="dark"] .premium-slider-btn {
  background: var(--white);
  border-color: var(--border);
}
.premium-slider-btn:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.premium-slider-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.premium-slider-prev {
  left: 16px;
}
.premium-slider-next {
  right: 16px;
}
@media (max-width: 768px) {
  .premium-slider-btn {
    width: 40px;
    height: 40px;
  }
  .premium-slider-prev { left: 12px; }
  .premium-slider-next { right: 12px; }
}

/* Dot indicators */
.premium-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.premium-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.premium-slider-dot:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.2);
}
.premium-slider-dot.is-active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}

/* ── Journey section ─────────────────────────────────────── */
.home-journey {
  text-align: center;
  padding: 40px 20px 56px;
}
.home-journey-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.home-journey h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}
.home-journey p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Zones ────────────────────────────────────────────────── */
.home-zones {
  padding: 0 20px 64px;
}
.home-zone {
  max-width: 1100px;
  margin: 0 auto 56px;
}
.home-zone:last-of-type { margin-bottom: 0; }

.home-zone-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.home-zone-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--primary);
}
.home-zone-title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--text);
}
.home-zone-desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.home-zone-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
@media (min-width: 640px) {
  .home-zone-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .home-zone-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

.home-zone-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.home-zone-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: inherit;
}
.home-zone-card-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
  display: block;
}
.home-zone-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.home-zone-card-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.4;
}
.home-zone-card-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}
.home-zone-card:hover .home-zone-card-cta { text-decoration: underline; }

.home-zone-footer {
  margin-top: 18px;
}
.home-zone-footer a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}
.home-zone-footer a:hover { text-decoration: underline; }

/* ── How to Use (SEO-friendly description) ────────────────── */
.home-howto {
  padding: 48px 20px 56px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
[data-theme="dark"] .home-howto {
  background: var(--bg);
  border-top-color: var(--border);
}
.home-howto-inner {
  max-width: 720px;
  margin: 0 auto;
}
.home-howto h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.home-howto-intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.home-howto-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}
.home-howto-step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.home-howto-step p {
  font-size: 0.95rem;
  color: var(--subtle);
  line-height: 1.7;
  margin: 0;
}
.home-howto-step a,
.home-howto-outro a {
  color: var(--primary);
  font-weight: 500;
}
.home-howto-step a:hover,
.home-howto-outro a:hover {
  text-decoration: underline;
}
.home-howto-outro {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.home-guide,
.home-faq {
  padding: 56px 20px 64px;
  background: var(--white);
  border-top: 1px solid var(--border);
}
[data-theme="dark"] .home-guide,
[data-theme="dark"] .home-faq {
  background: var(--bg);
  border-top-color: var(--border);
}
.home-guide-inner {
  max-width: 720px;
  margin: 0 auto;
}
.home-guide-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}
.home-guide h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.home-guide-intro {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.home-guide-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-guide-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.home-guide-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  transition: background 0.2s;
}
[data-theme="dark"] .home-guide-q {
  background: var(--white);
}
.home-guide-q:hover {
  background: var(--border);
}
[data-theme="dark"] .home-guide-q:hover {
  background: var(--subtle);
}
.home-guide-q .home-guide-q-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.home-guide-q .chevron {
  margin-left: auto;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
  transition: transform 0.2s;
}
.home-guide-item.is-open .chevron { transform: rotate(45deg); }
.home-guide-a {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}
.home-guide-a-inner {
  padding: 0 0 18px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}
.home-guide-a a { color: var(--primary); }

/* ── CTA block (reuse .cta-block from main.css, optional override) ─ */
.home-cta {
  padding: 48px 20px 56px;
}
