/*
 * landing/lo-trinh.css — styles for /chon-lo-trinh/.
 *
 * The base reset + nav rules mirror index.html's inline critical block. They
 * are duplicated rather than extracted because that block exists to inline
 * into the landing document's <head> for first paint; this page is not the
 * SEO-critical hero and can afford a linked stylesheet.
 */

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

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

body {
  margin: 0;
  background: var(--black100);
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.num {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--primary110);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Nav                                                                  */
/* ------------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black100);
  border-bottom: 1px solid var(--black90);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s4) var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--s3) var(--s6);
  border-radius: var(--r-full);
  background: var(--gradient-primary);
  color: var(--black100);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Layout                                                               */
/* ------------------------------------------------------------------ */
.lead-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s12) var(--s6) var(--s24);
}

.lead-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 var(--s3);
}

.lead-intro {
  color: rgba(255, 255, 255, 0.7);
  max-width: 60ch;
  margin: 0 0 var(--s12);
}

.lead-grid {
  display: grid;
  gap: var(--s12);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .lead-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

/* ------------------------------------------------------------------ */
/* Form                                                                 */
/* ------------------------------------------------------------------ */
.lead-field {
  display: block;
  margin-bottom: var(--s4);
}

.lead-field > label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--s2);
}

.lead-field input {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border-radius: var(--r-lg);
  border: 1px solid var(--black90);
  background: var(--black90);
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--text-body);
}

.lead-choices {
  display: grid;
  gap: var(--s2);
  min-width: 0;
  margin: 0 0 var(--s4);
  padding: 0;
  border: 0;
}

.lead-choices-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-choices legend { margin-bottom: var(--s2); font-size: var(--text-sm); font-weight: 600; }
.lead-choice {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-lg);
  cursor: pointer;
}
.lead-choice:hover,
.lead-choice:has(input:checked) { background: rgba(255, 96, 37, 0.14); border-color: var(--primary110); }
.lead-choice:focus-within { outline: 2px solid var(--primary110); outline-offset: 2px; }
.lead-choice input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--primary110); }

.lead-field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.lead-interests {
  border: 0;
  padding: 0;
  margin: var(--s8) 0 var(--s6);
}

.lead-interests legend {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  padding: 0;
  margin-bottom: var(--s4);
}

.lead-interest {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 44px;
}

.lead-interest input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary50);
  flex-shrink: 0;
}

.lead-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  width: 100%;
  min-height: 52px;
  padding: var(--s3) var(--s8);
  border: 0;
  border-radius: var(--r-full);
  background: var(--gradient-primary);
  color: var(--black100);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.lead-submit:hover {
  background: var(--primary50);
}

/* ------------------------------------------------------------------ */
/* Reference panels                                                     */
/* ------------------------------------------------------------------ */
.lead-reference figure {
  margin: 0 0 var(--s8);
}

.lead-reference figcaption {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--s2);
}

.lead-reference img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}

/* ------------------------------------------------------------------ */
/* Results                                                              */
/* ------------------------------------------------------------------ */
.lead-result {
  margin-top: var(--s12);
  padding: var(--s8);
  border-radius: var(--r-lg);
  background: var(--black90);
  border: 1px solid var(--primary100);
}

.lead-result h2 {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0 0 var(--s6);
}

.lead-stats {
  display: grid;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0 0 var(--s6);
}

.lead-stat {
  padding: var(--s4);
  border-radius: var(--r-lg);
  background: var(--black100);
}

.lead-stat dt {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.lead-stat dd {
  margin: var(--s1) 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-stat);
  line-height: 1.1;
}

.lead-stat .lead-band {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary110);
}

.lead-plan {
  margin: 0 0 var(--s6);
}

.lead-plan strong {
  color: var(--primary110);
}

.lead-notice {
  margin: var(--s4) 0 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}
