/* A real Lime work moment: restrained brand colours, product-first interaction. */
.hero-workflow {
  position: relative;
  width: min(100%, 66rem);
  height: clamp(31rem, 52vw, 35rem);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dbe4e7;
  border-radius: 1.1rem;
  background: #f5f8f8;
  box-shadow: 0 24px 60px -44px rgba(15, 23, 42, 0.55);
  scroll-margin-top: 6rem;
}

.hero-workflow-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-workflow-shade { display: none; }

.hero-chat {
  position: absolute;
  z-index: 2;
  inset: 1.75rem 1.75rem 1.75rem auto;
  display: flex;
  width: min(44%, 27rem);
  flex-direction: column;
  padding: 1.15rem;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 48px -34px rgba(15, 23, 42, 0.65);
  text-align: left;
}

.hero-chat-header,
.hero-chat-footer,
.hero-chat-brand,
.hero-assistant-identity,
.hero-thinking {
  display: flex;
  align-items: center;
}

.hero-chat-header {
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
}

.hero-chat-brand { gap: 0.55rem; }
.hero-chat-brand img { width: 1.45rem; height: 1.45rem; }
.hero-chat-brand div { display: grid; line-height: 1.05; }
.hero-chat-brand strong { color: #0f172a; font-size: 0.85rem; font-weight: 600; }
.hero-chat-brand span { margin-top: 0.2rem; color: #64748b; font-size: 0.7rem; }

.hero-chat-domain {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.hero-chat-domain i {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #2794a2;
}

.hero-chat-thread {
  display: grid;
  min-height: 0;
  gap: 1rem;
}

.hero-user-message {
  margin-left: 2.2rem;
  padding: 0.85rem 1rem;
  border-radius: 0.8rem 0.2rem 0.8rem 0.8rem;
  background: #0f172a;
  color: #fff;
}

.hero-user-message > span,
.hero-answer-sources > span {
  display: block;
  margin-bottom: 0.35rem;
  color: #7dced7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero-user-message p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.38;
}

.hero-assistant-message {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 13.8rem;
  padding: 0 0.15rem;
}

.hero-assistant-identity {
  grid-column: 1;
  grid-row: 1;
  gap: 0.48rem;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 600;
  transition: opacity 340ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1), visibility 340ms;
}

.hero-assistant-identity img { width: 1.1rem; height: 1.1rem; }

.hero-thinking {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  gap: 0.65rem;
  padding: 0.25rem 0.1rem;
  transition: opacity 340ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1), visibility 340ms;
}

.hero-answer {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 0.85rem;
  transition: opacity 340ms ease, transform 420ms cubic-bezier(0.16, 1, 0.3, 1), visibility 340ms;
}

.hero-thinking svg { width: 1.75rem; height: 1.75rem; flex: none; fill: #0f172a; }
.hero-thinking div { display: grid; }
.hero-thinking strong { color: #334155; font-size: 0.82rem; font-weight: 600; }
.hero-thinking span { margin-top: 0.18rem; color: #64748b; font-size: 0.73rem; }

.hero-thinking-a,
.hero-thinking-b {
  transform-origin: center;
  animation: lime-thinking 1.8s ease-in-out infinite;
}
.hero-thinking-b { animation-delay: 0.9s; }

.hero-answer p {
  margin: 0;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.48;
}

.hero-answer-sources {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5eaec;
}

.hero-answer-sources > span { margin: 0 0 0.05rem; color: #64748b; }
.hero-answer-sources a {
  width: fit-content;
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: #b2e3e8;
  text-underline-offset: 3px;
}
.hero-answer-sources a:hover { color: #0f172a; }

.hero-workflow[data-state='prompt'] .hero-assistant-identity,
.hero-workflow[data-state='prompt'] .hero-thinking,
.hero-workflow[data-state='prompt'] .hero-answer,
.hero-workflow[data-state='thinking'] .hero-assistant-identity,
.hero-workflow[data-state='thinking'] .hero-answer,
.hero-workflow[data-state='answer'] .hero-thinking {
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.4rem);
}

.hero-workflow[data-state='thinking'] .hero-thinking {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.hero-workflow[data-state='answer'] .hero-assistant-identity,
.hero-workflow[data-state='answer'] .hero-answer {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.hero-workflow.is-animating .hero-user-message {
  animation: hero-question-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-chat-footer {
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.65rem;
  color: #94a3b8;
  font-size: 0.68rem;
}

.hero-chat-footer button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.38rem;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 500;
}
.hero-chat-footer button:hover { color: #0f766e; }
.hero-chat-footer svg { width: 0.75rem; height: 0.75rem; }
.hero-chat-footer button:focus-visible,
.hero-answer-sources a:focus-visible {
  outline: 2px solid #2794a2;
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.hero-workflow figcaption {
  position: absolute;
  z-index: 2;
  left: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  max-width: 15rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.4rem;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  text-align: left;
}
.hero-workflow figcaption strong { font-size: 0.8rem; font-weight: 600; }
.hero-workflow figcaption span { margin-top: 0.2rem; color: #cbd5e1; font-size: 0.7rem; }

@keyframes lime-thinking {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

@keyframes hero-question-in {
  from { opacity: 0; transform: translateY(0.7rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* The earlier moving prompt language, now grounded in distinct legal domains. */
.examples-section { overflow: hidden; }
.prompt-marquee {
  overflow: hidden;
  padding: 0.4rem 0 0.8rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.prompt-line { overflow: hidden; padding: 0.55rem 0; }
.prompt-line + .prompt-line { margin-top: 0.65rem; }
.prompt-track { display: flex; width: max-content; will-change: transform; }
.prompt-track-left { animation: prompt-left 28s linear infinite; }
.prompt-track-right { animation: prompt-right 32s linear infinite; }
.prompt-list {
  display: flex;
  flex: none;
  gap: 1.15rem;
  margin: 0;
  padding: 0 0.575rem;
  list-style: none;
}
.prompt-list li {
  display: flex;
  width: 31rem;
  min-height: 3.8rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.68rem 1.05rem;
  border: 1px solid #cbd5d9;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035), 0 0 0 3px #f8fafb, 0 0 0 4px #e2e8ea;
  color: #1e293b;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}
.prompt-list li::before {
  content: '';
  width: 0.38rem;
  height: 0.38rem;
  flex: none;
  border-radius: 50%;
  background: #41b1be;
}
.prompt-list li span {
  flex: none;
  padding-right: 0.85rem;
  border-right: 1px solid #dce5e7;
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.prompt-marquee:hover .prompt-track,
.prompt-marquee:focus-within .prompt-track { animation-play-state: paused; }

@keyframes prompt-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes prompt-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* A compact closing composition, not another oversized campaign panel. */
.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 62rem);
  align-items: center;
  gap: 2.5rem;
  margin: 0 auto;
  padding: 0;
}
.footer-cta-copy { max-width: 37rem; }
.footer-cta-kicker {
  display: block;
  margin-bottom: 0.75rem;
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.footer-cta h2 {
  margin: 0;
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.footer-cta h2 span { color: #0f766e; }
.footer-cta-copy > p {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.55;
}
.footer-cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding-bottom: 0.15rem;
}
.footer-cta-action p {
  margin: 0 0 0 1.2rem;
  color: #64748b;
  font-size: 0.78rem;
}
.footer-cta-link {
  display: inline-flex;
  width: fit-content;
  min-height: 3.1rem;
  align-items: center;
  gap: 1.2rem;
  padding: 0.36rem 0.4rem 0.36rem 1.25rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 14px 26px -22px rgba(15, 23, 42, 0.8);
}
.footer-cta-link-icon {
  display: inline-flex;
  width: 2.3rem;
  height: 2.3rem;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #0f172a;
}
.footer-cta-link svg { transition: transform 200ms ease; }
.footer-cta-link:hover svg { transform: translate(2px, -2px); }
.footer-cta-link:focus-visible { outline: 2px solid #2794a2; outline-offset: 4px; }

.faq-list { display: grid; }
.faq-item { border-bottom: 1px solid #e2e7ea; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: none; }
.faq-item[open] summary::after { content: none; }
.faq-item summary:focus-visible { outline: 2px solid #2794a2; outline-offset: 4px; border-radius: 0.25rem; }
.faq-item .faq-answer { max-width: 100%; padding: 0 2rem 1.3rem 0; }
.faq-item[open] summary { color: #0f766e; }
.site-nav-link { min-height: 2.75rem; font-size: 0.9375rem; }

.plan-user-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: #475569;
  font-size: 0.95rem;
}
.plan-user-controls { display: flex; align-items: center; gap: 0.5rem; }
.plan-user-controls button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #dce5e7;
  border-radius: 0.5rem;
  color: #0f766e;
  font-size: 1.1rem;
  transition: background-color 180ms ease;
}
.plan-user-controls button:hover { background: #f0f9fa; }
.plan-user-controls button:disabled { opacity: 0.4; cursor: not-allowed; }
#max-user-count {
  min-width: 5.2rem;
  text-align: center;
  color: #334155;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .hero-workflow {
    display: flex;
    height: auto;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0.85rem;
  }
  .hero-workflow-image {
    position: relative;
    height: 15.5rem;
    object-position: 32% center;
  }
  .hero-chat {
    position: relative;
    inset: auto;
    width: auto;
    margin: -2.3rem 0.75rem 0.75rem;
    padding: 1rem;
  }
  .hero-workflow figcaption { display: none; }
  .hero-user-message { margin-left: 1.3rem; }
  .hero-assistant-message { min-height: 14.6rem; }
  .hero-answer p { font-size: 0.82rem; }
  .hero-chat-domain { max-width: 7.5rem; text-align: right; }
  .prompt-marquee {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  }
  .prompt-list li { width: 23rem; min-height: 3.7rem; font-size: 0.84rem; }
  .footer-cta {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.7rem;
    padding: 0;
  }
  .footer-cta h2 { font-size: clamp(1.9rem, 9vw, 2.55rem); }
  .footer-cta-action { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-workflow *,
  .hero-workflow *::before,
  .footer-cta-link svg { animation: none !important; transition: none !important; }
  .prompt-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }
  .prompt-track { animation: none !important; }
  .prompt-list[aria-hidden='true'] { display: none; }
}

/* ------------------------------------------------------------------ */
/* Capabilities: what Lime does, each card carrying one product detail. */
/* ------------------------------------------------------------------ */
.caps-section {
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4rem, 7vw, 5.5rem);
  background:
    radial-gradient(65% 55% at 50% 0%, rgba(178, 227, 232, 0.2), transparent 78%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfc 32%, #f3f9fa 78%, #ffffff 100%);
  scroll-margin-top: 5rem;
}

.lime-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  color: #0f766e;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}
.lime-eyebrow svg { width: 1.05rem; height: 1.05rem; flex: none; color: #2794a2; }
.lime-eyebrow-light { color: #ffffff; }
.lime-eyebrow-light svg { color: #ffffff; }

.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The product fragment is the only framed object; title and text sit on the page. */
.cap-item { display: flex; flex-direction: column; }
@supports (grid-template-rows: subgrid) {
  .cap-item { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}
.cap-item h3 {
  margin: 1.35rem 0 0;
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.cap-item > p {
  max-width: 38ch;
  margin: 0.5rem 0 3.25rem;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.5;
}

.cap-visual {
  display: flex;
  min-height: 12.5rem;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.05rem 1.15rem 1.15rem;
  border: 1px solid #dbe6e8;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 1px 0 #ffffff inset, 0 18px 36px -30px rgba(15, 94, 89, 0.45);
  transition: border-color 260ms ease, box-shadow 360ms cubic-bezier(0.16, 1, 0.3, 1), transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cap-item:hover .cap-visual {
  border-color: #b2e3e8;
  box-shadow: 0 1px 0 #ffffff inset, 0 26px 44px -30px rgba(15, 94, 89, 0.55);
  transform: translateY(-3px);
}

.cap-v-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #edf2f3;
}
.cap-v-head span { color: #0f172a; font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.cap-v-head em {
  flex: none;
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.cap-v-text { margin: 0; color: #334155; font-size: 0.95rem; line-height: 1.5; }
.cap-v-text del { color: #94a3b8; text-decoration-color: #64748b; }
.cap-v-text ins {
  padding: 0 0.2rem;
  border-radius: 0.2rem;
  background: #d7f2f4;
  color: #115e59;
  text-decoration: none;
  font-weight: 600;
}
.cap-v-foot {
  margin-top: auto;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

/* Legislation: pick the version in force on the date that matters. */
.cap-v-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.2rem;
  border-radius: 0.55rem;
  background: #f1f6f7;
}
.cap-v-switch span {
  padding: 0.38rem 0.3rem;
  border-radius: 0.4rem;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  text-align: center;
  white-space: nowrap;
}
.cap-v-switch .is-on { background: #0f172a; color: #ffffff; box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.9); }

/* Jurisprudence: the reasoning itself, and where it leads. */
.cap-v-quote { margin: 0; color: #334155; font-size: 0.95rem; font-style: italic; line-height: 1.5; }
.cap-v-quote mark { padding: 0 0.15rem; background: linear-gradient(transparent 55%, #b2e3e8 55%); color: #0f172a; }
.cap-v-cite {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding: 0.3rem 0.6rem;
  border: 1px dashed #b2d9de;
  border-radius: 999px;
  color: #475569;
  font-size: 0.82rem;
}
.cap-v-cite b { color: #0f766e; font-weight: 600; }
.cap-v-cite i { color: #0f766e; font-style: normal; }

/* Calculation: the last days of the period. */
.cap-v-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; }
.cap-v-week span {
  display: grid;
  justify-items: center;
  padding: 0.45rem 0 0.5rem;
  border: 1px solid #e3ecee;
  border-radius: 0.55rem;
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cap-v-week small {
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cap-v-week .is-off {
  border-style: dashed;
  background: repeating-linear-gradient(135deg, #f6f9fa 0 5px, #ffffff 5px 10px);
  color: #94a3b8;
}
.cap-v-week span:nth-child(3) { text-decoration: line-through; text-decoration-color: #41b1be; }
.cap-v-week .is-due { border-color: #0f766e; background: #0f766e; color: #ffffff; }
.cap-v-week .is-due small { color: #b2e3e8; }

/* Dispute: one contested fact, two outcomes. */
.cap-v-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; flex: 1; }
.cap-v-cols div {
  display: grid;
  align-content: start;
  gap: 0.1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e3ecee;
  border-radius: 0.6rem;
  background: #fbfdfd;
}
.cap-v-cols i {
  display: inline-flex;
  width: 1.3rem;
  height: 1.3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: #d7f2f4;
  color: #115e59;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
}
.cap-v-cols .is-alt i { background: #0f172a; color: #ffffff; }
.cap-v-cols small { color: #64748b; font-size: 0.8rem; }
.cap-v-cols b {
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.cap-v-cols span { color: #475569; font-size: 0.82rem; }

/* Registries: one entity, resolved everywhere. */
.cap-v-rows { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.cap-v-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.cap-v-rows span {
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.cap-v-rows b { color: #334155; font-size: 0.88rem; font-weight: 600; text-align: right; }

.cap-redacted {
  border-radius: 2px;
  background: #0f172a;
  color: transparent;
  letter-spacing: -0.08em;
  user-select: none;
}
.cap-v-redact mark {
  padding: 0 0.2rem;
  border-radius: 0.2rem;
  background: #d7f2f4;
  color: #115e59;
}

/* How Lime treats sources. */
.caps-safeguards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid #dde7e9;
  list-style: none;
}
.caps-safeguards li {
  position: relative;
  padding-left: 1.6rem;
  color: #64748b;
  font-size: 0.97rem;
  line-height: 1.45;
}
.caps-safeguards li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.1 2.1 4.6-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    #2794a2;
}
.caps-safeguards b { color: #0f172a; font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Workflows: a teal field carrying one live, readable demo card.      */
/* ------------------------------------------------------------------ */
.flows-section {
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(4.5rem, 8vw, 6.5rem);
  color: #ffffff;
  isolation: isolate;
  scroll-margin-top: 5rem;
}
.flows-field,
.closing-field {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(42% 55% at 8% 12%, rgba(6, 46, 51, 0.95), transparent 70%),
    radial-gradient(38% 50% at 92% 8%, rgba(178, 227, 232, 0.85), transparent 68%),
    radial-gradient(40% 45% at 70% 55%, rgba(65, 177, 190, 0.7), transparent 70%),
    radial-gradient(50% 55% at 96% 100%, rgba(240, 249, 250, 0.9), transparent 65%),
    radial-gradient(55% 60% at 18% 100%, rgba(17, 94, 89, 0.9), transparent 70%),
    linear-gradient(125deg, #0a3a3f 0%, #115e59 30%, #1d8391 55%, #41b1be 78%, #b2e3e8 100%);
}
.flows-field::after,
.closing-field::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
}

.flows-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
}
.flows-title {
  max-width: 20ch;
  margin: 0;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--type-section);
  font-weight: 400;
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
}
.flows-intro {
  max-width: 34rem;
  margin: 0 0 0.3rem auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.55;
}

.flows-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1.15rem;
  background: #fbfcfc;
  box-shadow: 0 50px 90px -50px rgba(3, 35, 39, 0.75), 0 0 0 6px rgba(255, 255, 255, 0.12);
  color: #0f172a;
  --flow-duration: 9s;
}

.flows-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #e1e9eb;
  background: #f2f7f8;
}
.flows-tab {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 1.05rem 1.35rem 1.15rem;
  border: 0;
  border-right: 1px solid #e1e9eb;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 220ms ease;
}
.flows-tab:last-child { border-right: 0; }
.flows-tab:hover { background: #f8fbfb; }
.flows-tab[aria-selected='true'] { background: #ffffff; }
.flows-tab:focus-visible { outline-offset: -3px; }
.flows-tab-kicker {
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.flows-tab-label {
  color: #64748b;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
  transition: color 220ms ease;
}
.flows-tab[aria-selected='true'] .flows-tab-label { color: #0f172a; }
.flows-tab-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}
.flows-tab-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #2794a2;
  transform: scaleX(0);
  transform-origin: left;
}
.flows-tab[aria-selected='true'] .flows-tab-progress i { transform: scaleX(1); }
.flows-card.is-auto .flows-tab[aria-selected='true'] .flows-tab-progress i {
  animation: flow-progress var(--flow-duration) linear both;
}
.flows-card.is-paused .flows-tab-progress i { animation-play-state: paused !important; }

.flows-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 27rem;
}
.flows-panel[hidden] { display: none; }

.flows-trail {
  padding: 1.9rem 2rem 2rem;
  border-right: 1px solid #e8eef0;
  background: #ffffff;
}
.flows-ask {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem 0.2rem 0.8rem 0.8rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}
.flows-ask span,
.flows-output-head span,
.flows-sources > span {
  display: block;
  margin-bottom: 0.35rem;
  color: #7dced7;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.flows-steps {
  display: grid;
  gap: 1.05rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.flows-steps li {
  position: relative;
  display: grid;
  padding-left: 2rem;
}
.flows-steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.1 2.1 4.6-4.8' fill='none' stroke='%230f766e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    #d7f2f4;
}
.flows-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0.53rem;
  top: 1.45rem;
  bottom: -0.95rem;
  width: 1px;
  background: #d5e5e8;
}
.flows-steps b { color: #0f172a; font-size: 0.98rem; font-weight: 600; line-height: 1.3; }
.flows-steps span { margin-top: 0.1rem; color: #64748b; font-size: 0.9rem; line-height: 1.35; }

.flows-output {
  padding: 1.9rem 2rem 2rem;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(215, 242, 244, 0.7), transparent 70%),
    #f7fafb;
}
.flows-output-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.flows-output-head span { margin: 0; color: #64748b; }
.flows-output-head em {
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.03em;
}

.flows-answer {
  margin: 1.15rem 0 0;
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.5;
}
.flows-answer strong { color: #0f172a; font-weight: 700; }

.flows-caveat {
  position: relative;
  margin: 0.9rem 0 0;
  padding: 0.65rem 0.85rem 0.65rem 2.1rem;
  border: 1px dashed #b2d9de;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.75);
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.4;
}
.flows-caveat::before {
  content: '?';
  position: absolute;
  left: 0.7rem;
  top: 0.72rem;
  display: flex;
  width: 0.95rem;
  height: 0.95rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0f766e;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
}
.flows-caveat.is-neutral::before { content: 'i'; background: #475569; }

.flows-note { margin: 0.6rem 0 0; color: #94a3b8; font-size: 0.8rem; }

.flows-sources {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e3eaec;
}
.flows-sources > span { margin: 0 0 0.05rem; color: #64748b; }
.flows-sources a {
  width: fit-content;
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-color: #b2e3e8;
  text-underline-offset: 3px;
}
.flows-sources a:hover { color: #0f172a; }

/* Deadline strip. */
.deadline-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.deadline-strip::before {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 50%;
  height: 1px;
  background: #cfe0e3;
}
.deadline-node {
  position: relative;
  display: grid;
  padding: 0.7rem 0.75rem;
  border: 1px solid #dde7e9;
  border-radius: 0.7rem;
  background: #ffffff;
}
.deadline-node small { color: #94a3b8; font-size: 0.78rem; }
.deadline-node b {
  margin: 0.1rem 0;
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.deadline-node span { color: #475569; font-size: 0.84rem; font-weight: 500; }
.deadline-node.is-struck b {
  color: #94a3b8;
  text-decoration: line-through;
  text-decoration-color: #41b1be;
  text-decoration-thickness: 2px;
}
.deadline-node.is-final {
  border-color: #0f172a;
  background: #0f172a;
  box-shadow: 0 16px 30px -20px rgba(15, 23, 42, 0.8);
}
.deadline-node.is-final small { color: #7dced7; }
.deadline-node.is-final b { color: #ffffff; }
.deadline-node.is-final span { color: #d7f2f4; }

/* Case comparison. */
.case-list { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.case-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #dde7e9;
  border-radius: 0.7rem;
  background: #ffffff;
}
.case-item div { display: grid; gap: 0.15rem; }
.case-item b { color: #0f172a; font-size: 0.95rem; font-weight: 600; }
.case-item span { color: #64748b; font-size: 0.9rem; line-height: 1.35; }
.case-tag {
  flex: none;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.case-tag.is-pro { background: #d7f2f4; color: #115e59; }
.case-tag.is-key { background: #0f172a; color: #ffffff; }
.case-tag.is-con { border: 1px solid #dbe3e6; background: #f5f7f8; color: #475569; }

/* Company profile. */
.company-card {
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid #dde7e9;
  border-radius: 0.8rem;
  background: #ffffff;
}
.company-top { display: flex; align-items: center; gap: 0.75rem; }
.company-top div { display: grid; }
.company-top b { color: #0f172a; font-size: 1.05rem; font-weight: 700; }
.company-top small { color: #64748b; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; }
.company-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #115e59, #41b1be);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}
.company-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid #edf2f3;
}
.company-facts dt {
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.company-facts dd { margin: 0.15rem 0 0; color: #0f172a; font-size: 0.98rem; font-weight: 600; }

/* Case file to chronology. */
.file-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.6rem 0.3rem 0.35rem;
  border: 1px solid #e1e9eb;
  border-radius: 0.5rem;
  background: #f8fafb;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 500;
}
.file-pill i {
  padding: 0.12rem 0.3rem;
  border-radius: 0.25rem;
  background: #0f172a;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  font-style: normal;
}

.chrono { position: relative; display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.chrono::before {
  content: '';
  position: absolute;
  left: 5.35rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: #cfe0e3;
}
.chrono li {
  position: relative;
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  column-gap: 1.5rem;
  padding: 0.35rem 0;
}
.chrono li::before {
  content: '';
  position: absolute;
  left: 5.12rem;
  top: 0.72rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #2794a2;
  box-shadow: 0 0 0 3px #f7fafb;
}
.chrono time {
  grid-row: span 2;
  color: #0f766e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.9;
}
.chrono span { color: #0f172a; font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.chrono small { color: #94a3b8; font-size: 0.8rem; }
.chrono li.is-gap span { color: #475569; font-style: italic; }
.chrono li.is-gap::before { background: #ffffff; box-shadow: 0 0 0 1px #2794a2, 0 0 0 4px #f7fafb; }

/* Sequenced playback. Without the class, everything is simply visible. */
.flows-panel.is-playing .flows-ask { animation: flow-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.flows-panel.is-playing .file-pill,
.flows-panel.is-playing .flows-steps li { animation: flow-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.flows-panel.is-playing .file-pill:nth-child(1) { animation-delay: 250ms; }
.flows-panel.is-playing .file-pill:nth-child(2) { animation-delay: 350ms; }
.flows-panel.is-playing .file-pill:nth-child(3) { animation-delay: 450ms; }
.flows-panel.is-playing .flows-steps li:nth-child(1) { animation-delay: 450ms; }
.flows-panel.is-playing .flows-steps li:nth-child(2) { animation-delay: 950ms; }
.flows-panel.is-playing .flows-steps li:nth-child(3) { animation-delay: 1450ms; }
.flows-panel.is-playing .flows-steps li:nth-child(4) { animation-delay: 1950ms; }
.flows-panel.is-playing .flows-output > * { animation: flow-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.flows-panel.is-playing .flows-output > :nth-child(1) { animation-delay: 1500ms; }
.flows-panel.is-playing .flows-output > :nth-child(2) { animation-delay: 2250ms; }
.flows-panel.is-playing .flows-output > :nth-child(3) { animation-delay: 2600ms; }
.flows-panel.is-playing .flows-output > :nth-child(4) { animation-delay: 2900ms; }
.flows-panel.is-playing .flows-output > :nth-child(5) { animation-delay: 3150ms; }

@keyframes flow-in {
  from { opacity: 0; transform: translateY(0.45rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes flow-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.flows-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: 2rem;
}
.flows-footer p {
  max-width: 40rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.5;
}
.flows-cta {
  display: inline-flex;
  flex: none;
  min-height: 3.1rem;
  align-items: center;
  gap: 1.2rem;
  padding: 0.36rem 0.4rem 0.36rem 1.3rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 18px 34px -22px rgba(3, 35, 39, 0.8);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.flows-cta:active { transform: scale(0.97); }
.flows-cta span {
  display: inline-flex;
  width: 2.3rem;
  height: 2.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
}
.flows-cta svg { width: 1rem; height: 1rem; transition: transform 200ms ease; }
.flows-cta:hover svg { transform: translate(2px, -2px); }
.flows-cta:focus-visible { outline-color: #ffffff; }

@media (max-width: 1023px) {
  .caps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps-safeguards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flows-heading { grid-template-columns: 1fr; gap: 1rem; }
  .flows-intro { margin: 0; }
  .flows-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(13.5rem, 1fr);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .flows-tabs::-webkit-scrollbar { display: none; }
  .flows-panel { grid-template-columns: 1fr; min-height: 0; }
  .flows-trail { border-right: 0; border-bottom: 1px solid #e8eef0; }
}

@media (max-width: 767px) {
  .caps-grid { grid-template-columns: 1fr; }
  .cap-item > p { margin-bottom: 2.5rem; }
  .cap-visual { min-height: 0; }
  .caps-safeguards { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .flows-card { border-radius: 0.95rem; }
  .flows-tabs { grid-auto-columns: 12.5rem; }
  .flows-tab { padding: 0.9rem 1rem 1rem; }
  .flows-trail,
  .flows-output { padding: 1.35rem 1.1rem 1.5rem; }
  .deadline-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deadline-strip::before { display: none; }
  .case-item { flex-direction: column; gap: 0.5rem; }
  .flows-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .cap-visual,
  .flows-panel *,
  .flows-cta,
  .flows-cta svg { animation: none !important; transition: none !important; }
  .flows-tab-progress { display: none; }
}

/* Window bar above the workflow tabs. */
.flows-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.35rem;
  border-bottom: 1px solid #e1e9eb;
  background: #ffffff;
}
.flows-chrome-id { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.flows-chrome-id img { width: 1.15rem; height: 1.15rem; }
.flows-chrome-id b { color: #0f172a; font-size: 0.95rem; font-weight: 700; }
.flows-chrome-id span {
  padding-left: 0.55rem;
  border-left: 1px solid #e1e9eb;
  color: #64748b;
  font-size: 0.9rem;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .flows-chrome { padding: 0.65rem 1rem; }
  .flows-chrome-id span { display: none; }
}

/* While a workflow is "working", the result pane shows a quiet placeholder. */
.flows-output { position: relative; }
.flows-panel.is-playing .flows-output::before {
  content: '';
  position: absolute;
  top: 1.9rem;
  left: 2rem;
  right: 2rem;
  height: 9.5rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%) -100% 0 / 60% 100% no-repeat,
    linear-gradient(#e3eef0, #e3eef0) 0 0 / 28% 0.55rem no-repeat,
    linear-gradient(#e8f1f3, #e8f1f3) 0 1.6rem / 100% 3.6rem no-repeat,
    linear-gradient(#e8f1f3, #e8f1f3) 0 6rem / 86% 0.7rem no-repeat,
    linear-gradient(#e8f1f3, #e8f1f3) 0 7.3rem / 64% 0.7rem no-repeat;
  animation: flow-shimmer 1.1s ease-in-out infinite, flow-placeholder-out 1500ms linear forwards;
  pointer-events: none;
}
@keyframes flow-shimmer { to { background-position: 250% 0, 0 0, 0 1.6rem, 0 6rem, 0 7.3rem; } }
@keyframes flow-placeholder-out {
  0%, 85% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
@media (max-width: 767px) {
  .flows-panel.is-playing .flows-output::before { top: 1.35rem; left: 1.1rem; right: 1.1rem; }
}

/* Product demo refinement: keep the legal workflow legible, reduce dashboard chrome. */
.flows-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 34px 70px -48px rgba(3, 35, 39, 0.66), 0 0 0 1px rgba(8, 66, 69, 0.08);
}
.flows-chrome {
  min-height: 3.65rem;
  padding: 0.75rem 1.5rem;
  border-bottom-color: #e7edee;
  background: #fff;
}
.flows-chrome-id { gap: 0.65rem; }
.flows-chrome-id b { font-size: 0.9rem; letter-spacing: -0.02em; }
.flows-chrome-id span {
  padding-left: 0.8rem;
  border-left-color: #dce6e7;
  color: #68777c;
  font-size: 0.82rem;
}
.flows-tabs {
  background: #fff;
  border-bottom-color: #dfe8e9;
}
.flows-tab {
  min-height: 5.15rem;
  gap: 0.35rem;
  padding: 1rem 1.35rem 1.05rem;
  border-right: 1px solid #e7edee;
  transition: background-color 180ms ease, color 180ms ease;
}
.flows-tab:hover { background: #f8fbfa; }
.flows-tab[aria-selected='true'] { background: #f4f9f8; }
.flows-tab-kicker {
  color: #56736f;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: none;
}
.flows-tab-label { color: #637176; font-size: 0.93rem; font-weight: 500; }
.flows-tab[aria-selected='true'] .flows-tab-label { color: #13272b; font-weight: 600; }
.flows-tab-progress { height: 2px; }
.flows-panel {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: 25rem;
}
.flows-trail { padding: 2rem 2.1rem; border-right-color: #e5ebec; }
.flows-ask {
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid #e3ebeb;
  border-radius: 0.55rem;
  background: #f8faf9;
  color: #17292d;
  font-size: 0.96rem;
  line-height: 1.55;
}
.flows-ask span,
.flows-output-head span,
.flows-sources > span {
  margin-bottom: 0.5rem;
  color: #687a7e;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.flows-steps { gap: 0.85rem; margin-top: 1.35rem; }
.flows-steps li { padding-left: 1.85rem; }
.flows-steps li::before {
  top: 0.12rem;
  width: 1rem;
  height: 1rem;
  background-color: #e6f2f0;
}
.flows-steps li:not(:last-child)::after { left: 0.48rem; top: 1.3rem; bottom: -0.78rem; background: #dfe9e8; }
.flows-steps b { font-size: 0.9rem; font-weight: 600; }
.flows-steps span { margin-top: 0.15rem; color: #66767a; font-size: 0.84rem; line-height: 1.45; }
.flows-output {
  padding: 2rem 2.1rem;
  background: #f7f9f8;
}
.flows-output-head { margin-bottom: 1.15rem; }
.flows-output-head span { color: #586b6e; }
.flows-output-head em {
  color: #536b68;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0;
}
.deadline-strip { gap: 0; }
.deadline-strip::before { left: 0.75rem; right: 0.75rem; top: 1.2rem; background: #cbdad8; }
.deadline-node {
  gap: 0.06rem;
  padding: 2.05rem 0.55rem 0.55rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.deadline-node::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0.88rem;
  left: 0.68rem;
  width: 0.62rem;
  height: 0.62rem;
  border: 2px solid #8aa7a2;
  border-radius: 50%;
  background: #f7f9f8;
}
.deadline-node small { color: #647579; font-size: 0.72rem; }
.deadline-node b { margin: 0.12rem 0; font-size: 1.2rem; font-weight: 600; }
.deadline-node span { color: #637276; font-size: 0.77rem; line-height: 1.3; }
.deadline-node.is-struck b { color: #829092; text-decoration-color: #879995; }
.deadline-node.is-final {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.deadline-node.is-final::before { border-color: #087c74; background: #087c74; box-shadow: 0 0 0 3px #d8eeea; }
.deadline-node.is-final small, .deadline-node.is-final b, .deadline-node.is-final span { color: #08766f; }
.deadline-node.is-final b { font-weight: 700; }
.flows-answer { margin-top: 1.25rem; color: #435458; font-size: 0.94rem; line-height: 1.6; }
.flows-answer strong { color: #153337; }
.flows-caveat {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d9e6e3;
  border-radius: 0.45rem;
  background: #eef5f3;
  color: #475b5e;
  font-size: 0.84rem;
  line-height: 1.5;
}
.flows-caveat::before { display: none; }
.flows-note { color: #697a7c; }
.flows-sources { gap: 0.3rem; margin-top: 1rem; padding-top: 0.75rem; border-top-color: #dfe7e6; }
.flows-sources > span { margin-bottom: 0.1rem; }
.flows-sources a {
  color: #126e68;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration-color: #91bbb5;
}
.case-list { gap: 0; }
.case-item {
  align-items: center;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid #dfe7e6;
  border-radius: 0;
  background: transparent;
}
.case-item:first-child { padding-top: 0.25rem; }
.case-item:last-child { border-bottom: 0; }
.case-item b { font-size: 0.9rem; }
.case-item span { color: #596b6e; font-size: 0.82rem; line-height: 1.45; }
.case-tag { padding: 0.25rem 0.42rem; border-radius: 0.25rem; font-family: 'Montserrat', sans-serif; font-size: 0.64rem; letter-spacing: 0; }
.case-tag.is-pro { background: #e5f2ef; color: #27645e; }
.case-tag.is-key { background: #e9eeee; color: #33484c; }
.case-tag.is-con { border-color: #d8e1e1; background: #f4f6f5; color: #536164; }
.company-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
.company-mark { border-radius: 0.35rem; background: #e6f1ef; color: #176d66; }
.company-top b { font-size: 0.98rem; }
.company-top small { color: #5f7374; font-family: 'Montserrat', sans-serif; font-size: 0.72rem; }
.company-facts { gap: 0; margin-top: 1rem; padding-top: 0.25rem; border-top: 1px solid #dfe7e6; }
.company-facts > div { padding: 0.6rem 0; border-bottom: 1px solid #e4eae9; }
.company-facts dt { color: #66777a; font-family: 'Montserrat', sans-serif; font-size: 0.68rem; letter-spacing: 0; text-transform: none; }
.company-facts dd { font-size: 0.9rem; font-weight: 600; }
.file-stack { gap: 0.35rem; }
.file-pill { border-color: #e0e8e7; border-radius: 0.35rem; background: #f7f9f8; font-size: 0.78rem; }
.file-pill i { border-radius: 0.2rem; background: #e5eeec; color: #3f625e; }
.chrono::before { left: 5.55rem; background: #ccdcda; }
.chrono li { grid-template-columns: 4.8rem minmax(0, 1fr); column-gap: 1.5rem; padding: 0.42rem 0; }
.chrono li::before { left: 5.32rem; background: #438c84; box-shadow: 0 0 0 3px #f7f9f8; }
.chrono time { color: #39756f; font-size: 0.68rem; }
.chrono span { font-size: 0.87rem; }
.chrono small { color: #637579; font-size: 0.74rem; }
.chrono li.is-gap::before { background: #f7f9f8; box-shadow: 0 0 0 1px #438c84, 0 0 0 4px #f7f9f8; }

@media (max-width: 1023px) {
  .flows-panel { grid-template-columns: 1fr; }
  .flows-trail { border-right: 0; border-bottom: 1px solid #e5ebec; }
}
@media (max-width: 767px) {
  .flows-chrome { padding: 0.65rem 1rem; }
  .flows-tab { min-height: 4.75rem; padding: 0.85rem 1rem 0.95rem; }
  .flows-tab-label { font-size: 0.86rem; }
  .flows-trail, .flows-output { padding: 1.35rem 1.1rem; }
  .deadline-node { padding-right: 0.35rem; padding-left: 0.45rem; }
  .deadline-node::before { left: 0.55rem; }
  .deadline-strip::before { display: none; }
}

/* Closing call to action: a short band on the workflow gradient. */
.closing-section {
  overflow: hidden;
  padding: clamp(3rem, 5vw, 4rem) 0;
  color: #ffffff;
  isolation: isolate;
}
.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem 3rem;
}
.closing-title {
  max-width: 32ch;
  margin: 0;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 400;
  letter-spacing: var(--tracking-heading);
  line-height: 1.15;
}
.closing-lead {
  max-width: 40rem;
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.5;
}
.closing-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.closing-secondary {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: #000000;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.35);
  text-underline-offset: 5px;
  transition: text-decoration-color 200ms ease;
}
.closing-secondary:hover { text-decoration-color: #000000; }
.closing-secondary:focus-visible { outline-color: #000000; }

@media (max-width: 1023px) {
  .closing-inner { flex-direction: column; align-items: flex-start; }
}
