/* Logistics Document Intelligence — page-scoped styles.
   Standardized on the existing design system: cs-* (solutions/compare long-form
   pages), the global .btn/.btn-primary/.btn-secondary buttons, .features-grid/
   .feature-card (homepage cards), .cs-table (compare pages), .slx-faq (homepage
   FAQ accordion), and talk-to-sales.css (.tts-layout/.tts-form/.tts-field/
   .tts-toggle) for the embedded form. Only the simulated demo panel and the
   grid helper for 5/6-card rows are new, since no DS equivalent exists for
   either. Shared by the EN page and its pt-BR mirror. */

.cs-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 140px 24px 0;
}
.cs-eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin: 0 0 20px;
}
.cs-h1 {
  font-size: clamp(32px, 5.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #0a0a0a;
  margin: 0 0 22px;
  font-weight: 600;
}
.cs-lead {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.55;
  color: #444;
  max-width: 62ch;
  margin: 0 0 36px;
}
.di-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

/* Wide sections (grids, table, demo) break out of the narrow reading column */
.di-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.di-section {
  margin: 0 0 8px;
  padding: 64px 0;
  border-top: 1px solid #ececec;
}
.di-section:first-child { border-top: none; }
.di-section-narrow { max-width: 840px; margin: 0 auto; }
.di-section h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  color: #0a0a0a;
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.di-section > p.di-section-lead {
  font-size: 17px;
  line-height: 1.65;
  color: #444;
  max-width: 68ch;
  margin: 0 0 32px;
}
.di-section p { font-size: 16px; line-height: 1.65; color: #444; max-width: 66ch; margin: 0 0 16px; }

.di-flow-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a8a8a;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 20px;
}

/* ------------------------------------------------------------------------
   Card grids (flow, applications, approach) — reuse the homepage's
   .features-grid / .feature-card / .feature-icon / .feature-title /
   .feature-desc exactly as defined in styles.css. The only addition is a
   border helper for grids with more than 3 cards (the base rule only
   accounts for a 3-card row), and dropping the scroll-reveal fade-in
   classes since their IntersectionObserver trigger (script.js) is not
   loaded on solution pages, same as every other /solutions/* page.
   ------------------------------------------------------------------------ */
.di-wide .features-grid { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-top: 8px; }
.di-wide .feature-card { border-right: 1px solid var(--border); border-top: 1px solid var(--border); padding: 40px 32px; }
.di-wide .feature-card:nth-child(3n) { border-right: none; }
.di-wide .feature-card:nth-child(-n+3) { border-top: none; }
.di-wide .feature-title { font-size: 16px; }
.di-wide .feature-desc { font-size: 14px; }

/* ------------------------------------------------------------------------
   Differentiation table — identical to the .cs-table pattern already used
   on every /compare/* page, just with two scenario columns instead of three.
   ------------------------------------------------------------------------ */
.cs-table-wrap { overflow-x: auto; margin: 8px 0 0; border: 1px solid #ececec; border-radius: 16px; }
.cs-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.cs-table th, .cs-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid #ececec; vertical-align: top; }
.cs-table thead th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #8a8a8a; font-weight: 600; background: #fafafa; }
.cs-table thead th:nth-child(2) { color: #0a0a0a; }
.cs-table tbody th { font-weight: 500; color: #0a0a0a; width: 200px; }
.cs-table td { color: #555; line-height: 1.5; }
.cs-table td.cs-col-sl { color: #0a0a0a; font-weight: 500; }
.cs-table tr:last-child th, .cs-table tr:last-child td { border-bottom: none; }

/* ------------------------------------------------------------------------
   FAQ — identical to the homepage's .slx-faq native <details> accordion,
   no JS required.
   ------------------------------------------------------------------------ */
.slx-faq-list { display: flex; flex-direction: column; border-top: 1px solid #ececec; margin-top: 8px; }
.slx-faq-item { border-bottom: 1px solid #ececec; }
.slx-faq-item summary { list-style: none; cursor: pointer; padding: 24px 0; font-size: clamp(17px, 2vw, 20px); color: #0a0a0a; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.slx-faq-item summary::-webkit-details-marker { display: none; }
.slx-faq-item summary::after { content: "+"; font-size: 22px; color: #8a8a8a; flex-shrink: 0; }
.slx-faq-item[open] summary::after { content: "\2013"; }
.slx-faq-item p { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: #555; max-width: 70ch; }

/* ------------------------------------------------------------------------
   Demo panel (simulated data) — genuinely new, no DS equivalent exists.
   Kept to the same surface language as the rest of the page: #ececec
   borders, #fafafa fill, the same radii as cs-table-wrap/cs-cta.
   ------------------------------------------------------------------------ */
.di-demo {
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fafafa;
  padding: clamp(20px, 4vw, 36px);
  margin-top: 8px;
}
.di-demo-badge {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a8a8a;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 20px;
}
.di-demo-scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.di-demo-scenario-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  height: 40px;
  padding: 0 16px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.di-demo-scenario-btn:hover { border-color: var(--border-hover); }
.di-demo-scenario-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.di-demo-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.di-demo-doc {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.di-demo-doc-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin: 0 0 12px;
}
.di-demo-doc dl { margin: 0; }
.di-demo-doc dt {
  font-size: 11.5px;
  color: #999;
  margin: 0 0 2px;
}
.di-demo-doc dd {
  font-size: 13.5px;
  color: #262626;
  margin: 0 0 10px;
  font-weight: 500;
}
.di-demo-doc dd:last-child { margin-bottom: 0; }
.di-demo-doc dd.is-divergent {
  color: #9a3a00;
  background: #fff1e6;
  border-radius: 6px;
  padding: 3px 7px;
  display: inline-block;
}
.di-demo-evidence {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 18px 20px;
}
.di-demo-evidence-title {
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  margin: 0 0 8px;
}
.di-demo-evidence-body {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0;
  max-width: none;
}

/* ------------------------------------------------------------------------
   Embedded form — the right-hand card reuses talk-to-sales.css wholesale
   (.tts-layout / .tts-left / .tts-right / .tts-form / .tts-field /
   .tts-row-2 / .tts-privacy / .tts-toggle / .tts-submit); this stylesheet
   only lays out the intro bullet list on the left.
   ------------------------------------------------------------------------ */
.di-form-intro ul { margin: 24px 0 0; padding: 0; list-style: none; }
.di-form-intro li {
  font-size: 14.5px;
  color: #555;
  padding: 0 0 12px 22px;
  position: relative;
  line-height: 1.5;
}
.di-form-intro li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0a0a0a;
}
.di-form-success { display: none; }
.di-form-success.is-visible { display: block; }
.tts-form.is-hidden { display: none; }

.cs-cta {
  margin: 56px 0 0;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 20px;
  background: #0a0a0a;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.cs-cta h2 { color: #fff; font-size: clamp(22px, 3vw, 30px); margin: 0 0 12px; font-weight: 600; letter-spacing: -.01em; }
.cs-cta p { color: #b8b8b8; font-size: 16px; line-height: 1.6; margin: 0 0 24px; max-width: 54ch; }
.cs-cta-btn {
  display: inline-block;
  background: #fff;
  color: #0a0a0a;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}
.cs-cta-btn:hover { opacity: .85; }
.cs-back { display: inline-block; margin-top: 48px; font-size: 14px; color: #8a8a8a; text-decoration: none; }
.cs-back:hover { color: #0a0a0a; }

.di-explore {
  margin: 56px auto 0;
  padding: 28px 24px 96px;
  max-width: 1080px;
  border-top: 1px solid #ececec;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

/* The house breakpoints for .features-grid/.feature-card already live in
   styles.css: it collapses to 1 column at max-width:1024px (the same
   "Tablet" rule the homepage uses) and the card padding shrinks at
   max-width:768px. We only need to follow suit on the border helper so a
   6-card grid doesn't carry a stray vertical rule once it's a single
   column, matching how the rest of the site behaves at the same widths. */
@media (max-width: 1024px) {
  .di-wide .feature-card { border-right: none !important; }
  .di-wide .feature-card:nth-child(n+2) { border-top: 1px solid var(--border); }
  .di-wide .feature-card:first-child { border-top: none; }
  .di-demo-docs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cs-wrap { padding: 104px 20px 0; }
  .di-section { padding: 48px 0; }
}
