/* ==========================================================================
   Landing Page Styles — tl-landing-* namespace
   Bold & colorful design direction
   Mobile-first, breakpoints: 768px / 1024px
   ========================================================================== */

/* -- Hero section -------------------------------------------------------- */
.tl-landing-hero {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
  color: #fff;
  border-radius: 1rem;
  padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.tl-landing-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.tl-landing-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.95);
  color: #312e81;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.tl-landing-hero h1 {
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: #fff;
}

.tl-landing-description {
  font-size: clamp(0.9rem, 3vw, 1rem);
  opacity: 0.9;
  line-height: 1.55;
  margin: 0;
  max-width: 40rem;
}

/* -- Meta pills ---------------------------------------------------------- */
.tl-landing-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tl-landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tl-landing-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* -- Instructions card --------------------------------------------------- */
.tl-landing-instructions {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 1.5rem);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
  border-top: 3px solid var(--brand);
}
.tl-landing-instructions h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tl-landing-instructions h2 svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex-shrink: 0;
}
.tl-landing-instructions p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0.5rem 0 0;
}
.tl-landing-instructions p:first-of-type {
  margin-top: 0;
}

/* -- Start CTA ----------------------------------------------------------- */
.tl-landing-start {
  margin: 1.5rem 0;
}
.tl-landing-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 52px;
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 0.75rem;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.tl-landing-start-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}
.tl-landing-start-btn:active {
  transform: translateY(0);
}
.tl-landing-start-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s;
}
.tl-landing-start-btn:hover svg {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .tl-landing-start-btn {
    width: auto;
    min-width: 14rem;
    margin: 0 auto;
  }
}

/* -- Fineprint ----------------------------------------------------------- */
.tl-landing-fineprint {
  font-size: 0.78rem;
  color: var(--fine);
  text-align: center;
  margin: 1.25rem auto 0;
  max-width: 46rem;
  line-height: 1.5;
}

/* -- Citations ----------------------------------------------------------- */
.tl-landing-citations {
  margin: 1.5rem 0;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}
.tl-landing-citations summary {
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.12s;
}
.tl-landing-citations summary::-webkit-details-marker {
  display: none;
}
.tl-landing-citations summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid var(--ink-soft);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.tl-landing-citations[open] summary::before {
  transform: rotate(90deg);
}
.tl-landing-citations summary:hover {
  color: var(--brand-dark);
}
.tl-landing-citations ul {
  margin: 0;
  padding: 0 1rem 1rem 2.25rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.tl-landing-citations li {
  margin-bottom: 0.35rem;
}
.tl-landing-citations li:last-child {
  margin-bottom: 0;
}
.tl-landing-citations .tl-citation-source {
  color: inherit;
}
.tl-landing-citations .tl-citation-note {
  margin-left: 0.4rem;
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
}

/* -- FAQ ----------------------------------------------------------------- */
.tl-landing-faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 1.25rem);
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.tl-landing-faq h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.tl-landing-faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.tl-landing-faq details:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.tl-landing-faq details:first-of-type {
  padding-top: 0;
}
.tl-landing-faq summary {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tl-landing-faq summary::-webkit-details-marker {
  display: none;
}
.tl-landing-faq summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid var(--brand);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.15s;
  flex-shrink: 0;
}
.tl-landing-faq details[open] summary::before {
  transform: rotate(90deg);
}
.tl-landing-faq details p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0.5rem 0 0 1rem;
}

/* -- Related reading ------------------------------------------------------ */
.tl-landing-related {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 1.25rem);
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}
.tl-landing-related h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.tl-landing-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tl-landing-related li {
  border-bottom: 1px solid var(--line);
}
.tl-landing-related li:last-child {
  border-bottom: none;
}
.tl-landing-related a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.12s;
}
.tl-landing-related a:hover {
  color: var(--brand-dark);
}

/* -- Back link ----------------------------------------------------------- */
.tl-landing-back {
  text-align: center;
  margin: 1.5rem 0 0;
}
.tl-landing-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  min-height: 44px;
  transition: color 0.12s;
}
.tl-landing-back a:hover {
  color: var(--brand-dark);
}
.tl-landing-back a svg {
  width: 16px;
  height: 16px;
}

/* -- Mobile adjustments -------------------------------------------------- */
.tl-main:has(.tl-landing-hero) {
  padding-left: var(--gap);
  padding-right: var(--gap);
}
@media (max-width: 639px) {
  .tl-landing-hero {
    margin-top: calc(-1 * clamp(1.25rem, 5vw, 2rem));
    border-radius: 0 0 1rem 1rem;
  }
}
