:root {
  --black: #000000;
  --near-black: #1d1d1f;
  --light-gray: #f5f5f7;
  --white: #ffffff;
  --accent: #0071e3;
  --link-light: #0066cc;
  --link-dark: #2997ff;
  --text-soft-light: rgba(0, 0, 0, 0.8);
  --text-mute-light: rgba(0, 0, 0, 0.56);
  --text-soft-dark: rgba(255, 255, 255, 0.86);
  --text-mute-dark: rgba(255, 255, 255, 0.56);
  --card-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0px;
  --amber-bg: #fff7e6;
  --amber-border: #f0c674;
  --amber-text: #6b4a00;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--light-gray);
  color: var(--near-black);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link-light); }

/* ---------- Navigation glass ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.08px;
}

.nav-inner {
  max-width: 980px;
  width: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: rgba(255, 255, 255, 0.92);
}

.nav-links span { cursor: default; }

/* ---------- Sections ---------- */
.section {
  width: 100%;
  padding: 96px 22px;
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

.section-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-light {
  background: var(--light-gray);
  color: var(--near-black);
}

.section-white {
  background: var(--white);
  color: var(--near-black);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 120px 22px 110px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--text-mute-dark);
  margin-bottom: 22px;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
  color: var(--white);
}

.hero-sub {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.19;
  letter-spacing: 0.011em;
  color: var(--text-soft-dark);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Pill CTAs ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: 980px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.pill-filled {
  background: var(--accent);
  color: var(--white);
}
.pill-filled:hover { background: #0077ed; }

.pill-outline-dark {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.pill-outline-dark:hover { background: rgba(255,255,255,0.08); }

.pill-outline-light {
  background: transparent;
  color: var(--link-light);
  border-color: var(--link-light);
}
.pill-outline-light:hover { background: rgba(0,113,227,0.06); }

/* ---------- Section heading ---------- */
.section-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -0.4px;
  margin: 0 0 12px;
  text-align: center;
}

.section-sub {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.32;
  text-align: center;
  color: var(--text-soft-light);
  max-width: 580px;
  margin: 0 auto 56px;
}

.section-dark .section-sub { color: var(--text-soft-dark); }

/* ---------- Disclaimer (amber) ---------- */
.disclaimer {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.224px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

/* ---------- Step labels ---------- */
.step-label {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-mute-light);
  text-align: center;
  margin: 0 0 16px;
}

.section-dark .step-label { color: var(--text-mute-dark); }

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 56px;
}

.card {
  background: var(--white);
  border: none;
  border-radius: 12px;
  padding: 26px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font: inherit;
  color: var(--near-black);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.card.selected {
  box-shadow: 0 0 0 2px var(--accent), var(--card-shadow);
}

.card-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: -0.231px;
  margin: 0 0 6px;
}

.card-sub {
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--text-mute-light);
  margin: 0;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.chip {
  background: var(--white);
  border: none;
  border-radius: 12px;
  padding: 18px 22px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  color: var(--near-black);
  transition: all 0.2s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--card-shadow);
}

.chip-arrow {
  color: var(--link-light);
  font-size: 14px;
  font-weight: 400;
  flex-shrink: 0;
}

.ask-own {
  margin-top: 14px;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  min-height: 56px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px dashed rgba(0,0,0,0.18);
  background: transparent;
  font: inherit;
  color: var(--text-mute-light);
  resize: none;
}
.ask-own:disabled { cursor: not-allowed; }

/* ---------- Answer panel ---------- */
.answer-panel {
  background: var(--white);
  border-radius: 18px;
  padding: 44px 44px 40px;
  margin-top: 40px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--card-shadow);
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft-light);
  font-size: 15px;
}

.loading-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.answer-question {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.3px;
  margin: 0 0 18px;
  color: var(--near-black);
}

.confidence {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--white);
  padding: 5px 12px;
  border-radius: 980px;
  margin-bottom: 18px;
}

.confidence.low { background: #b06f00; }
.confidence.medium { background: var(--accent); }
.confidence.high { background: #1a7f37; }

.answer-text {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.022em;
  margin: 0 0 14px;
  color: var(--near-black);
}

.answer-meta {
  font-size: 13px;
  color: var(--text-mute-light);
  margin: 0 0 32px;
  letter-spacing: -0.12px;
}

.section-heading {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-mute-light);
  margin: 0 0 12px;
}

.citation {
  background: rgba(0, 113, 227, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.citation-clause {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  margin: 0 0 6px;
}

.citation-quote {
  font-style: italic;
  color: var(--text-soft-light);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
  margin: 0 0 10px;
}

.citation-link {
  color: var(--link-light);
  font-size: 14px;
  text-decoration: none;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.citation-link:hover { text-decoration: underline; }

.caveats {
  margin: 24px 0 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft-light);
}

.caveats li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--light-gray);
  padding: 40px 22px 56px;
  font-size: 12px;
  color: var(--text-mute-light);
  text-align: center;
  line-height: 1.5;
  letter-spacing: -0.12px;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
}

.next-steps {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.next-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.next-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.next-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.next-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.224px;
  margin: 4px 0 4px;
  color: var(--near-black);
}

.next-body {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
  color: var(--text-soft-light);
  margin: 0 0 10px;
}

.pill-sm {
  padding: 7px 16px;
  font-size: 14px;
}

.step-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-mute-light);
  letter-spacing: -0.12px;
  margin: 18px 0 56px;
}

.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 740px) {
  .hero { padding: 80px 22px 72px; }
  .hero h1 { font-size: 42px; line-height: 1.1; }
  .hero-sub { font-size: 18px; }
  .section { padding: 64px 22px; }
  .section-title { font-size: 30px; }
  .section-sub { font-size: 17px; margin-bottom: 40px; }
  .answer-panel { padding: 28px 24px; }
  .answer-question { font-size: 22px; }
  .answer-text { font-size: 17px; }
  .nav-links { gap: 18px; }
}
