/* Shared pieces of the landing site that are not part of any one Stitch design:
   the language menu, the translation note, and right-to-left fixes for Arabic. */

/* Skip link: out of sight until a keyboard user tabs to it. */
.fl-skip {
  position: fixed;
  inset-inline-start: 1rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: #0c66e4;
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}
.fl-skip:focus { transform: none; }
main:focus { outline: none; }

.fl-lang { position: relative; }
.fl-lang summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
.fl-lang summary::-webkit-details-marker { display: none; }
.fl-lang summary svg { transition: transform 0.2s ease; }
.fl-lang[open] summary svg { transform: rotate(180deg); }
.fl-lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.75rem);
  z-index: 80;
  display: grid;
  min-width: 10rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid #dcdfe4;
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px -16px rgba(9, 30, 66, 0.35);
}
.fl-lang-menu a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #172b4d;
  font-size: 0.875rem;
  font-weight: 500;
}
.fl-lang-menu a:hover { background: #f4f6fa; }
.fl-lang-menu a[aria-current] { color: #0c66e4; font-weight: 600; }
.fl-lang-footer { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.fl-lang-footer a[aria-current] { color: #0c66e4; }

.fl-translation-note {
  margin-top: 1rem;
  max-width: 40rem;
  color: #626f86;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Long words (German compounds above all) break instead of widening the page on phones. */
body { overflow-wrap: break-word; }
:lang(de) :is(h1, h2, h3, h4),
:lang(fr) :is(h1, h2, h3, h4),
:lang(es) :is(h1, h2, h3, h4) { hyphens: auto; }

/* --- Comparison: Flowlogs and two alternatives as cards ----------------------------
   Phones stack the cards, Flowlogs first. From 768px they sit side by side and their rows
   share the section grid's row tracks (subgrid), so each criterion lines up across the
   cards; from 1024px a column of row labels joins them and the in-card labels are only
   read aloud. */
.fl-cmp-section {
  background:
    radial-gradient(44rem 26rem at 40% 45%, rgba(12, 102, 228, 0.07), transparent 70%),
    #fff;
}
[dir='rtl'] .fl-cmp-section {
  background:
    radial-gradient(44rem 26rem at 60% 45%, rgba(12, 102, 228, 0.07), transparent 70%),
    #fff;
}
.fl-cmp { display: grid; gap: 1.75rem; }
.fl-cmp-labels { display: none; }
.fl-cmp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-color: #dcdfe4;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.06), 0 12px 32px -24px rgba(9, 30, 66, 0.25);
}
/* Flowlogs: a dark card that stands apart from the two light ones, with a light that runs
   round its edge (motion.css turns --fl-angle). */
@property --fl-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 200deg;
}
.fl-cmp-main {
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(28rem 16rem at 50% -4rem, rgba(56, 139, 255, 0.38), transparent 70%),
    linear-gradient(180deg, #0f1f45 0%, #0b1630 55%, #0a1329 100%);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(9, 30, 66, 0.3),
    0 40px 80px -36px rgba(12, 102, 228, 0.75),
    0 24px 48px -30px rgba(9, 30, 66, 0.6);
}
.fl-cmp-main::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--fl-angle), transparent 0 50%, #388bff 68%, #c4b9ff 80%, #85b8ff 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.fl-cmp-main .fl-cmp-head h3 { color: #fff; }
.fl-cmp-main .fl-cmp-head p:last-child { color: #a9b6cc; }
.fl-cmp-main .fl-cmp-row dt { color: #8fa3c4; }
.fl-cmp-main .fl-cmp-yes circle { fill: #388bff; }
.fl-cmp-main .fl-cmp-no circle,
.fl-cmp-main .fl-cmp-no path { stroke: #8fa3c4; }
.fl-cmp-head { padding: 1.75rem 1.5rem 1.25rem; }
.fl-cmp-head h3 { color: #172b4d; font-size: 1.125rem; font-weight: 800; line-height: 1.3; }
.fl-cmp-head p:last-child { margin-top: 0.25rem; color: #626f86; font-size: 0.875rem; line-height: 1.45; text-wrap: pretty; }
.fl-cmp-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  color: #626f86;
  font-size: 0.8125rem;
  font-weight: 500;
}
.fl-cmp-legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.fl-cmp-legend .fl-cmp-mark { width: 1rem; height: 1rem; margin: 0; }
.fl-cmp-legend-top { margin-top: 1.5rem; }
.fl-cmp-legend-side { display: none; }
.fl-cmp-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: #f1f2f4;
  color: #44546f;
}
.fl-cmp-icon svg { width: 1.25rem; height: 1.25rem; }
.fl-cmp-icon img { width: 100%; height: 100%; border-radius: inherit; }
.fl-cmp-main .fl-cmp-icon { background: none; box-shadow: 0 6px 14px -6px rgba(12, 102, 228, 0.55); }
.fl-cmp-badge {
  position: absolute;
  top: 0;
  inset-inline-start: 1.5rem;
  transform: translateY(-50%);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #0c66e4;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(12, 102, 228, 0.7);
}
.fl-cmp-rows { margin: 0; }
.fl-cmp-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid #ebecf0;
  transition: background-color 0.2s ease;
}
.fl-cmp-main .fl-cmp-row { border-top-color: rgba(255, 255, 255, 0.08); }
.fl-cmp-card:not(.fl-cmp-main) .fl-cmp-row:last-child { border-radius: 0 0 calc(1rem - 1px) calc(1rem - 1px); }
.fl-cmp-row dt { margin-bottom: 0.3rem; color: #626f86; font-size: 0.75rem; font-weight: 600; }
.fl-cmp-row dd {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  color: #44546f;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}
.fl-cmp-main .fl-cmp-row dd { color: #fff; font-weight: 600; }
.fl-cmp-off dd { color: #626f86; font-weight: 500; }
.fl-cmp-main .fl-cmp-off dd { color: #a9b6cc; font-weight: 500; }
.fl-cmp-mark { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.05rem; }
.fl-cmp-mark path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.fl-cmp-yes circle { fill: #0c66e4; }
.fl-cmp-yes path { stroke: #fff; stroke-width: 2.2; }
.fl-cmp-has circle { fill: #e9ebee; }
.fl-cmp-has path { stroke: #44546f; }
.fl-cmp-part circle { fill: none; stroke: #b38600; stroke-width: 1.5; }
.fl-cmp-part path { fill: #e2b203; stroke: none; }
.fl-cmp-no circle { fill: none; stroke: #8590a2; stroke-width: 1.5; stroke-dasharray: 2.4 2.2; }
.fl-cmp-no path { stroke: #8590a2; }
[dir='rtl'] .fl-cmp-part { transform: scaleX(-1); }
@media (min-width: 360px) and (max-width: 767.98px) {
  .fl-cmp-row {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 0.75rem;
    padding-inline: 1.25rem;
  }
  .fl-cmp-row dt { margin: 0; padding-top: 0.1rem; font-size: 0.8125rem; }
  .fl-cmp-head { padding-inline: 1.25rem; }
  .fl-cmp-foot { padding-inline: 1.25rem; }
}
.fl-cmp-foot { padding: 0.5rem 1.5rem 1.5rem; }
.fl-cmp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  background: #0c66e4;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.2);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.fl-cmp-cta:hover { background: #0055cc; box-shadow: 0 10px 22px -10px rgba(12, 102, 228, 0.8); }
.fl-cmp-cta:focus-visible { outline: 2px solid #0c66e4; outline-offset: 3px; }
.fl-cmp-main .fl-cmp-cta {
  background: linear-gradient(180deg, #388bff, #0c66e4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 28px -12px rgba(56, 139, 255, 0.9);
}
.fl-cmp-main .fl-cmp-cta:hover { background: linear-gradient(180deg, #579dff, #1d7afc); }
.fl-cmp-main .fl-cmp-cta:focus-visible { outline-color: #85b8ff; }
.fl-cmp-note {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-color: #cce0ff;
  background: linear-gradient(90deg, #f1f6ff, #fff 70%);
  color: #44546f;
  font-size: 0.9375rem;
  line-height: 1.6;
}
[dir='rtl'] .fl-cmp-note { background: linear-gradient(270deg, #f1f6ff, #fff 70%); }
.fl-cmp-note .fl-cmp-icon { margin: 0; background: #fff; color: #0c66e4; box-shadow: inset 0 0 0 1px #cce0ff; }
.fl-cmp-note strong { color: #172b4d; font-weight: 700; }

@media (min-width: 768px) {
  .fl-cmp { grid-template-columns: 1.1fr 1fr 1fr; column-gap: 1rem; row-gap: 0; }
  @supports (grid-template-rows: subgrid) {
    .fl-cmp { grid-template-rows: auto repeat(6, auto) auto; }
    .fl-cmp-card { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 7; }
    .fl-cmp-main { grid-row: 1 / span 8; }
    .fl-cmp-rows { display: grid; grid-template-rows: subgrid; grid-row: span 6; }
  }
}
@media (min-width: 1024px) {
  .fl-cmp { grid-template-columns: minmax(10rem, 0.85fr) 1.2fr 1fr 1fr; column-gap: 1.25rem; }
  .fl-cmp-labels {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 7;
    color: #172b4d;
    font-size: 0.875rem;
    font-weight: 600;
  }
  .fl-cmp-labels > div[data-row] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-top: 1px solid #ebecf0;
    padding-inline-start: 0.25rem;
    transition: background-color 0.2s ease;
  }
  .fl-cmp-labels svg { flex: none; width: 1.125rem; height: 1.125rem; color: #8590a2; }
  .fl-cmp-labels > div:first-child { display: flex; align-items: flex-end; padding-bottom: 1.25rem; }
  .fl-cmp-legend-top { display: none; }
  .fl-cmp-legend-side { display: grid; gap: 0.6rem; justify-content: start; }
  .fl-cmp-legend-side .fl-cmp-mark { width: 1.125rem; height: 1.125rem; }
  .fl-cmp-row dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .fl-cmp-row { padding-block: 1rem; }
  /* Pointing at a criterion tints it across every card. */
  .fl-cmp:has([data-row='0']:hover) [data-row='0'],
  .fl-cmp:has([data-row='1']:hover) [data-row='1'],
  .fl-cmp:has([data-row='2']:hover) [data-row='2'],
  .fl-cmp:has([data-row='3']:hover) [data-row='3'],
  .fl-cmp:has([data-row='4']:hover) [data-row='4'],
  .fl-cmp:has([data-row='5']:hover) [data-row='5'] { background-color: rgba(12, 102, 228, 0.045); }
  .fl-cmp:has([data-row='0']:hover) .fl-cmp-main [data-row='0'],
  .fl-cmp:has([data-row='1']:hover) .fl-cmp-main [data-row='1'],
  .fl-cmp:has([data-row='2']:hover) .fl-cmp-main [data-row='2'],
  .fl-cmp:has([data-row='3']:hover) .fl-cmp-main [data-row='3'],
  .fl-cmp:has([data-row='4']:hover) .fl-cmp-main [data-row='4'],
  .fl-cmp:has([data-row='5']:hover) .fl-cmp-main [data-row='5'] { background-color: rgba(255, 255, 255, 0.06); }
}

/* Right to left: Tailwind's space-x and divide-x utilities assume left to right. */
[dir='rtl'] [class*='space-x-'] > :not([hidden]) ~ :not([hidden]) { --tw-space-x-reverse: 1; }
[dir='rtl'] [class*='divide-x'] > :not([hidden]) ~ :not([hidden]) { --tw-divide-x-reverse: 1; }
[dir='rtl'] .text-left { text-align: right; }
[dir='rtl'] .list-disc.pl-5 { padding-left: 0; padding-right: 1.25rem; }
[dir='rtl'] .list-decimal.pl-5 { padding-left: 0; padding-right: 1.25rem; }
