/**
 * CaseRounds — AI-consult page components (used on /ai-consult).
 * The deck/brochure visuals rebuilt as site components. All colours map to the
 * site's design tokens (navy / teal / cream) via the .cr-scope custom properties
 * below — no second palette. Scoped under .cr-scope so nothing leaks site-wide.
 */

/* Palette mapped to the site's design tokens (navy / teal / cream). */
.cr-scope {
  --cr-navy: #0F3C5C;
  --cr-teal: #2FA4A9;
  --cr-teal-dark: #1F6A6E;
  --cr-ink: #1A2840;
  --cr-body: #4A5568;
  --cr-muted: #6B7280;
  --cr-line: rgba(15, 60, 92, 0.14);
  --cr-surface: #FFFFFF;
  --cr-green: #4F7A63;
  --cr-mol: #6A5FA3;
  --cr-red: #8C3A3A;
}

/* Hero logo lockup */
.cr-hero-logo { display: block; width: min(280px, 62vw); height: auto; margin: 0 auto 1.25rem; }
.cr-eyebrow {
  font-family: Inter, sans-serif; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--cr-teal-dark);
  text-align: center; margin: 0 0 0.75rem;
}
.cr-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 1.75rem; }

/* --- Consult rail (8 blocks) --- */
.cr-rail-card {
  background: var(--cr-surface); border: 1px solid var(--cr-line); border-radius: 14px;
  padding: 1.25rem 1rem; box-shadow: 0 1px 3px rgba(15,60,92,0.05);
  max-width: 820px; margin: 2rem auto 0; overflow-x: auto;
}
.cr-rail { display: flex; align-items: flex-start; gap: 0; min-width: 640px; }
.cr-step { display: flex; flex-direction: column; align-items: center; min-width: 74px; flex: 1; }
.cr-dot {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-family: Inter, sans-serif; font-weight: 700; font-size: 12px;
  border: 2px solid var(--cr-line); background: #F1F7F7; color: var(--cr-muted);
}
.cr-dot.done { background: var(--cr-green); border-color: var(--cr-green); color: #fff; }
.cr-dot.cur { background: var(--cr-teal); border-color: var(--cr-teal); color: #fff; }
.cr-label { font-family: Inter, sans-serif; font-size: 11px; color: var(--cr-muted); text-align: center; margin-top: 6px; line-height: 1.2; }
.cr-label.cur { color: var(--cr-ink); font-weight: 700; }
.cr-conn { flex: 1; height: 2px; background: var(--cr-line); margin-top: 15px; min-width: 10px; }

/* --- Three kinds of logic cards --- */
.cr-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 980px; margin: 0 auto; }
@media (max-width: 800px) { .cr-grid3 { grid-template-columns: 1fr; } }
.cr-logic-card {
  background: var(--cr-surface); border: 1px solid var(--cr-line); border-radius: 14px;
  padding: 1.5rem 1.5rem 1.6rem; box-shadow: 0 2px 6px rgba(15,60,92,0.06);
}
.cr-tag {
  display: inline-block; font-family: Inter, sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; margin-bottom: 0.85rem;
}
.cr-tag.rules { background: #E9F2EC; color: var(--cr-green); }
.cr-tag.guide { background: #E6EBF2; color: #2F5D8C; }
.cr-tag.ai { background: #EDEAF6; color: var(--cr-mol); }
.cr-logic-card h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600;
  color: var(--cr-navy); margin: 0 0 0.4rem; line-height: 1.25;
}
.cr-logic-card p { font-family: Inter, sans-serif; font-size: 0.98rem; color: var(--cr-body); margin: 0; line-height: 1.6; }

/* --- Comparison table --- */
.cr-cmp-card { max-width: 900px; margin: 0 auto; background: var(--cr-surface); border: 1px solid var(--cr-line); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(15,60,92,0.06); }
.cr-cmp { width: 100%; border-collapse: collapse; font-family: Inter, sans-serif; }
.cr-cmp caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cr-cmp th {
  font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; text-align: left;
  padding: 0.9rem 1rem; border-bottom: 2px solid var(--cr-navy); background: #FBFCFD;
}
.cr-cmp th:first-child { color: var(--cr-muted); }
.cr-cmp th:last-child { color: var(--cr-teal-dark); }
.cr-cmp td { font-size: 0.98rem; padding: 0.95rem 1rem; border-bottom: 1px solid var(--cr-line); vertical-align: top; width: 50%; line-height: 1.55; }
.cr-cmp td:first-child { color: var(--cr-body); }
.cr-cmp td:last-child { color: var(--cr-ink); font-weight: 600; background: #FBFDFD; }
.cr-cmp tr:last-child td { border-bottom: none; }
@media (max-width: 620px) {
  .cr-cmp, .cr-cmp tbody, .cr-cmp tr, .cr-cmp td, .cr-cmp th { display: block; width: 100%; }
  .cr-cmp thead { display: none; }
  .cr-cmp tr { border-bottom: 1px solid var(--cr-line); padding: 0.4rem 0; }
  .cr-cmp tr:last-child { border-bottom: none; }
  .cr-cmp td { border: none; padding: 0.5rem 1rem; width: 100%; }
  .cr-cmp td:first-child::before { content: "Chatbot: "; font-weight: 700; color: var(--cr-red); }
  .cr-cmp td:last-child::before { content: "Your AI consult: "; font-weight: 700; color: var(--cr-teal-dark); }
}
.cr-pullquote {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.5rem, 3.5vw, 2rem); font-style: italic;
  color: var(--cr-navy); text-align: center; margin: 2.25rem auto 0; padding: 1.5rem 1rem 0;
  border-top: 1px solid rgba(47,164,169,0.4); max-width: 640px; line-height: 1.4;
}

/* --- Numbered steps (editorial 01–04) --- */
.cr-steps { list-style: none; padding: 0; margin: 0; position: relative; max-width: 820px; margin-left: auto; margin-right: auto; }
.cr-steps__line { position: absolute; left: 38px; top: 70px; bottom: 70px; width: 1px; background: linear-gradient(to bottom, rgba(47,164,169,0.6), rgba(47,164,169,0.15)); }
.cr-steps li { display: grid; grid-template-columns: 90px 1fr; gap: 2rem; align-items: start; padding: 1.6rem 0; }
.cr-steps__num { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 600; color: var(--cr-teal); line-height: 0.9; letter-spacing: -2px; }
.cr-steps h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 600; color: var(--cr-navy); margin: 0 0 0.5rem; line-height: 1.2; }
.cr-steps p { font-family: Inter, sans-serif; font-size: 1.05rem; color: var(--cr-body); line-height: 1.65; margin: 0; }
@media (max-width: 560px) {
  .cr-steps li { grid-template-columns: 56px 1fr; gap: 1rem; }
  .cr-steps__num { font-size: 2.6rem; }
  .cr-steps__line { left: 27px; }
}

/* --- Preference sliders --- */
.cr-sliders { max-width: 560px; margin: 2rem auto 0; background: var(--cr-surface); border: 1px solid var(--cr-line); border-radius: 14px; padding: 1.6rem 1.75rem; box-shadow: 0 2px 6px rgba(15,60,92,0.06); }
.cr-sl { margin-bottom: 1.4rem; }
.cr-sl:last-child { margin-bottom: 0; }
.cr-anchors { display: flex; justify-content: space-between; gap: 1rem; font-family: Inter, sans-serif; font-size: 0.82rem; color: var(--cr-ink); margin-bottom: 0.5rem; }
.cr-track { position: relative; height: 6px; background: var(--cr-line); border-radius: 3px; }
.cr-fill { position: absolute; left: 0; top: 0; height: 6px; background: var(--cr-teal); border-radius: 3px; }
.cr-thumb { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--cr-teal); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--cr-teal); transform: translateX(-50%); }
.cr-lean { font-family: Inter, sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--cr-teal-dark); margin-top: 0.5rem; }

/* --- Ranked regimen (illustrative) --- */
.cr-reg-wrap { max-width: 640px; margin: 1.75rem auto 0; }
.cr-reg-label { font-family: Inter, sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--cr-muted); text-align: center; margin: 0 0 0.9rem; }
.cr-reg { display: flex; gap: 0.9rem; background: var(--cr-surface); border: 1px solid var(--cr-line); border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 0.7rem; }
.cr-rk { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cr-navy); color: #fff; font-family: Inter, sans-serif; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.cr-nm { font-family: Inter, sans-serif; font-weight: 700; color: var(--cr-navy); }
.cr-nm span { font-weight: 400; color: var(--cr-muted); font-size: 0.85rem; }
.cr-badges { margin: 0.5rem 0 0.25rem; display: flex; flex-wrap: wrap; gap: 6px; }
.cr-badge { font-family: Inter, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.3px; border-radius: 5px; padding: 3px 8px; }
.b-tier { background: #E6EBF2; color: #2F5D8C; }
.b-mcbs { background: #EDEAF6; color: var(--cr-mol); }
.b-fit-h { background: #E9F2EC; color: var(--cr-green); }
.b-fit-m { background: #F6EFE2; color: #8A6D2F; }
.b-safe { background: #F1F7F7; color: var(--cr-muted); }
.cr-reg-note { font-family: Inter, sans-serif; font-size: 0.82rem; color: var(--cr-muted); margin: 0.3rem 0 0; }

/* --- Visit-type grid --- */
.cr-visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; max-width: 760px; margin: 2rem auto 0; }
@media (max-width: 640px) { .cr-visit-grid { grid-template-columns: 1fr 1fr; } }
.cr-visit {
  font-family: Inter, sans-serif; font-size: 0.98rem; font-weight: 600; color: var(--cr-navy);
  background: var(--cr-surface); border: 1px solid var(--cr-line); border-radius: 10px;
  padding: 0.9rem 1rem; text-align: center; box-shadow: 0 1px 3px rgba(15,60,92,0.05);
}

/* --- Privacy / invariant bar --- */
.cr-bar {
  background: var(--cr-navy); color: #E6EBF2; border-radius: 14px; padding: 1.75rem 2rem;
  max-width: 820px; margin: 0 auto; font-family: Inter, sans-serif; line-height: 1.6;
  box-shadow: 0 8px 24px rgba(15,60,92,0.18);
}
.cr-bar b { color: #fff; }
.cr-bar__logo { display: block; width: 190px; height: auto; margin-bottom: 1rem; }
.cr-bar ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.cr-bar li { padding-left: 1.5rem; position: relative; font-size: 0.98rem; }
.cr-bar li::before { content: "✓"; position: absolute; left: 0; color: var(--cr-teal); font-weight: 700; }

/* --- FAQ (visible details accordion) --- */
.cr-faq { margin-top: 2.5rem; border-top: 1px solid rgba(47,164,169,0.3); }
.cr-faq details { border-bottom: 1px solid rgba(47,164,169,0.3); padding: 1.4rem 0; }
.cr-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--cr-navy); line-height: 1.3; }
.cr-faq summary::-webkit-details-marker { display: none; }
.cr-faq summary .cr-faq__plus { flex: 0 0 auto; color: var(--cr-teal); font-family: Inter, sans-serif; font-size: 1.5rem; font-weight: 300; transition: transform 0.2s ease; }
.cr-faq details[open] summary .cr-faq__plus { transform: rotate(45deg); }
.cr-faq p { font-family: Inter, sans-serif; font-size: 1.05rem; color: var(--cr-body); line-height: 1.7; margin: 1rem 0 0.25rem; }

/* --- Small-print disclaimer --- */
.cr-disclaimer { max-width: 820px; margin: 0 auto; font-family: Inter, sans-serif; font-size: 0.85rem; color: var(--cr-muted); line-height: 1.6; text-align: center; }
