/* ============================================================
   EDITORIAL SPLIT HERO & CORRIDOR MARQUEE
   Legal Quotient Consultants — Design System
   ============================================================ */

/* Headings Display Voice */
.roar-hero h1,
.section-header h2,
.workflow-title,
.testimonials-title,
#pricing .section-header h2 {
  font-family: 'Bricolage Grotesque', var(--font-headline, sans-serif);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* ── HERO CONTAINER ───────────────────────────────────────── */
.roar-hero {
  position: relative;
  /* 60px of bottom padding on top of the figure's own 34px left ~100px of empty
     midnight between the composition and the marquee ribbon. */
  padding: 50px 0 36px;
  background: var(--paper, #FAF3E0);
  overflow: hidden;
}

.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

/* Left Column: Headline & Action */
.hero-editorial-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #1A1A1A;
  color: #FAF5EA;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.15);
}

.hero-badge-pill i {
  color: #22C55E;
  font-size: 0.55rem;
}

.hero-editorial-left h1 {
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  line-height: 1.05;
  color: #1A1A1A;
  margin-bottom: 20px;
}

.hero-editorial-left h1 .highlight-box {
  background: var(--primary, #E85D04);
  color: #FFFFFF;
  padding: 2px 14px;
  border-radius: 12px;
  display: inline-block;
  transform: rotate(-1deg);
}

.hero-sub-text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #46423B;
  margin-bottom: 28px;
  max-width: 54ch;
}

.hero-sub-text strong {
  color: #1A1A1A;
  font-weight: 750;
}

/* Actions Row */
.hero-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 35px;
}

.hero-actions-group .btn {
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-actions-group .btn-primary {
  background: var(--primary, #E85D04);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 10px 25px rgba(232, 93, 4, 0.35);
}

.hero-actions-group .btn-primary:hover {
  background: #C74E03;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(232, 93, 4, 0.5);
}

.hero-actions-group .btn-outline {
  background: #FFFFFF;
  color: #1A1A1A;
  border: 2px solid rgba(26, 26, 26, 0.2);
}

.hero-actions-group .btn-outline:hover {
  border-color: #1A1A1A;
  background: #1A1A1A;
  color: #FAF5EA;
  transform: translateY(-2px);
}

/* Corridor Switcher Container */
.corridor-switcher-box {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(28, 25, 20, 0.12);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(28, 25, 20, 0.06);
}

.corridor-switcher-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* Token, not a literal: this hard-coded #6F6A60 measured 3.21 once the clay
     band existed, while the three tokens carrying that same grey were deepened. */
  color: var(--color-text-muted, #514C44);
  margin-bottom: 12px;
}

.corridor-nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.corridor-tab-btn {
  padding: 7px 14px;
  border-radius: 999px;
  background: #FAF3E0;
  border: 1px solid rgba(28, 25, 20, 0.1);
  font-size: 0.82rem;
  font-weight: 750;
  color: #1A1A1A;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.corridor-tab-btn.active,
.corridor-tab-btn:hover {
  background: #1A1A1A;
  color: #FFFFFF;
  border-color: #1A1A1A;
}

.corridor-tab-content {
  display: none;
  font-size: 0.88rem;
  color: #46423B;
  background: #FDF8EA;
  border-radius: 12px;
  padding: 12px 16px;
  border-left: 3px solid var(--primary, #E85D04);
}

.corridor-tab-content.active {
  display: block;
}

.corridor-tab-content .forms-badge-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.corridor-tab-content .form-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(232, 93, 4, 0.15);
  color: var(--primary, #E85D04);
}

/* Right Column: Visualizer Box */
.hero-visualizer-card {
  background: #1A1A1A;
  color: #FAF5EA;
  border-radius: 24px;
  padding: 35px 30px;
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.3);
  border: 1px solid rgba(255, 157, 87, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-visualizer-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.3) 0%, rgba(26, 26, 26, 0) 70%);
  pointer-events: none;
}

.visualizer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(250, 245, 234, 0.12);
}

.visualizer-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FAF5EA;
  margin: 0;
}

.live-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Flow Node Diagram */
.corridor-flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 25px;
}

.flow-node {
  background: #2A2927;
  border: 1px solid rgba(250, 245, 234, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flow-node-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-flag {
  font-size: 1.4rem;
}

.flow-title {
  font-weight: 750;
  font-size: 0.95rem;
  color: #FAF5EA;
}

.flow-sub {
  font-size: 0.76rem;
  color: #A6A093;
}

.flow-connector-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: var(--primary, #E85D04);
  font-size: 0.8rem;
  font-weight: 800;
}

.flow-connector-line i {
  animation: pulseArrow 2s infinite ease-in-out;
}

@keyframes pulseArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Expert Card Inset */
.expert-profile-inset {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(42, 41, 39, 0.8);
  border: 1px solid rgba(255, 157, 87, 0.2);
  padding: 12px 16px;
  border-radius: 16px;
}

.expert-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary, #E85D04);
}

.expert-meta h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FAF5EA;
  margin: 0 0 2px 0;
}

.expert-meta p {
  font-size: 0.76rem;
  color: #FF9D57;
  margin: 0;
}

/* ── MARQUEE RIBBONS (.roar-ribbons) ───────────────────────── */
.roar-ribbons {
  position: relative;
  z-index: 5;
  margin-top: 10px;
  margin-bottom: 30px;
  overflow: hidden;
  padding: 10px 0;
}

.roar-ribbon {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.roar-ribbon-a {
  background: var(--primary, #E85D04);
  color: #FFFFFF;
  transform: rotate(-1.5deg) scale(1.02);
  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.3);
  position: relative;
  z-index: 2;
}

.roar-ribbon-b {
  background: #1A1A1A;
  color: #FF9D57;
  transform: rotate(1.2deg) scale(1.02);
  margin-top: -10px;
  border-top: 1px solid rgba(255, 157, 87, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}

.roar-ribbon-track {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: roarScroll 30s linear infinite;
  will-change: transform;
}

.roar-ribbon-b .roar-ribbon-track {
  animation: roarScrollReverse 34s linear infinite;
}

.ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.roar-ribbon-track i {
  font-style: normal;
  opacity: 0.7;
}

@keyframes roarScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes roarScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* ── CARDS & TABLES ───────────────────────────────────────── */
.choose-card,
.case-study-card,
.team-card,
.testimonial-card-single {
  background: #FFFFFF;
  border: 1px solid rgba(28, 25, 20, 0.1);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(28, 25, 20, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choose-card:hover,
.case-study-card:hover,
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(28, 25, 20, 0.15);
}

.card-manilla { background: #FDF8EA !important; }
.card-kraft   { background: #F7EFD9 !important; }
.card-slate   { background: #222120 !important; color: #FAF5EA !important; }
.card-cloud   { background: #FAF5EA !important; }

.tt-table.fare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(28, 25, 20, 0.1);
  overflow: hidden;
}

.tt-table.fare-table th {
  background: #343230;
  color: #EAE4D6;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 22px;
}

.tt-table.fare-table td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(28, 25, 20, 0.08);
  font-size: 0.94rem;
}

.tt-table.fare-table td.tt-fig {
  color: var(--primary, #E85D04);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 750;
}

.fare-table .fare-link {
  color: var(--primary, #E85D04);
  font-weight: 750;
  text-transform: uppercase;
  font-size: 0.74rem;
}

/* Workflow Section */
.workflow-section {
  padding: 80px 0;
  background: var(--paper, #FAF3E0);
  border-bottom: 1px solid rgba(28, 25, 20, 0.1);
}

.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 45px;
  align-items: center;
}

.workflow-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(28, 25, 20, 0.1);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.94rem;
}

.workflow-list li i {
  color: var(--primary, #E85D04);
  font-size: 1.1rem;
  margin-top: 2px;
}

/* FAQ Accordion
   ─────────────────────────────────────────────────────────────────────────
   Three columns, not one. `style.css` already lays this out as
   `grid-template-columns: repeat(3, 1fr)` and every inner page got it; this
   file loads after style.css on the homepage only and reset it to a single
   900px flex column, so the homepage FAQ ran to roughly three screens of
   one-question-per-row while the same component elsewhere was compact.

   `align-self: start` matters: a grid item stretches to its row height by
   default, which would pad every collapsed question out to the height of the
   tallest one beside it. */
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  max-width: 1200px;
  margin: 30px auto 0;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid rgba(28, 25, 20, 0.1);
  border-radius: 14px;
  overflow: hidden;
  align-self: start;
  min-width: 0;
}

@media (max-width: 1080px) {
  .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .faq-list { grid-template-columns: minmax(0, 1fr); }
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: transparent;
  border: none;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 750;
  color: #211E1A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.faq-question > span:first-child,
.faq-question > :not(i):not(svg) { min-width: 0; }
.faq-question i, .faq-question svg { flex: 0 0 auto; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
  padding: 0 18px 18px 18px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: #46423B;
  border-top: 1px solid rgba(28, 25, 20, 0.06);
  padding-top: 14px;
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-editorial-grid { grid-template-columns: 1fr; gap: 35px; }
  .workflow-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .hero-editorial-left h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
  .hero-actions-group .btn { width: 100%; text-align: center; }
}

/* Dark bands: choose-card text must follow the scope (fixes the slate
   card's washed title/desc on the charcoal why-choose band). */
.theme-dark .choose-card,
.theme-dark .choose-card .choose-card-header,
.theme-dark .choose-card .choose-card-desc {
  color: var(--ink-on-dark-soft) !important;
}
.theme-dark .choose-card .choose-card-title {
  color: var(--ink-on-dark) !important;
}

/* ── Contrast: the fee table's orange text on white ────────────────────────
   `--primary` (#E85D04) measures 3.37-3.5:1 on the table's white and #FAFAFA
   rows, under AA for text this size. lq-theme.css already defines the deeper
   token for exactly this; this sheet loads last, so it has to repeat it. */
.tt-table.fare-table td.tt-fig,
.fare-table .fare-link { color: var(--primary-text, #A8420A); }
