/*
 * Features + solutions pages (hubs and detail pages). GoSaaS markup with MyCaly content.
 * Neutral surfaces; green only on buttons, links, check icons and tiny highlights. Logical properties for RTL.
 */

/* ---------- Spacing ---------- */
.mc-dt-hub-hero { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.mc-dt-hero { padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 110px); overflow: hidden; }
.mc-dt-section { padding-block: clamp(72px, 9vw, 130px); }
.mc-dt-band { padding-block: clamp(56px, 7vw, 96px); }
.mc-dt-tabs-section { padding-bottom: clamp(72px, 9vw, 130px); }

/* ---------- Hub hero ---------- */
.mc-dt-hub-intro { max-width: 980px; margin-inline: auto; }
.mc-dt-hub-intro .mc-answer-box { max-width: 760px; text-align: center; }
.mc-dt-inline-checks { gap: 10px 28px; }
.mc-dt-inline-checks li { padding-left: 0; padding-inline-start: 25px; text-wrap: wrap; }
.mc-dt-inline-checks li i { left: auto; inset-inline-start: 0; }

.mc-dt-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--mc-line);
}
.mc-dt-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--mc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--heading-color);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s ease, color .2s ease;
}
.mc-dt-jump a:hover { border-color: var(--heading-color); }
.mc-dt-jump .mc-icon { color: var(--mc-green); }

/* ---------- Small label above headings (GoSaaS "WHY CHOOSE" style, no pill) ---------- */
.mc-dt-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--heading-color);
}
.mc-dt-kicker .mc-icon { color: var(--mc-green); flex: none; }

/* ---------- Alternating feature rows (hub) ---------- */
.mc-dt-row { scroll-margin-top: 120px; }
.mc-dt-row + .mc-dt-row { margin-top: clamp(80px, 10vw, 136px); }
.mc-dt-row .cs_card_content { max-width: 600px; }

.mc-dt-photo { isolation: isolate; }
.mc-dt-photo > img:not(.mc-dt-shape) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 5.6;
  object-fit: cover;
  border-radius: 15px;
  position: relative;
  z-index: 1;
}
.mc-dt-photo-hero > img:not(.mc-dt-shape) { aspect-ratio: 5 / 5.4; }

/* Floating interface widget (our product screenshot, small) */
.mc-dt-widget {
  position: absolute;
  z-index: 2;
  bottom: 44px;
  inset-inline-end: -56px;
  width: 64%;
  padding: 8px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 24px 48px -20px rgba(10, 10, 16, .32), 0 0 0 1px rgba(10, 10, 16, .04);
  animation: mc-dt-float 6s ease-in-out infinite;
}
.mc-dt-widget.mc-dt-widget-start { inset-inline-end: auto; inset-inline-start: -56px; }
.mc-dt-widget img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* Doodle shape (GoSaaS hero_shape_1) */
.mc-dt-shape,
.cs_card.cs_style_1 .cs_card_thumbnail > img.mc-dt-shape {
  position: absolute;
  z-index: 0;
  top: -54px;
  inset-inline-start: -58px;
  width: 92px;
  height: auto;
  border-radius: 0;
  pointer-events: none;
}
[dir="rtl"] .mc-dt-photo > img.mc-dt-shape { transform: scaleX(-1); }

/* Problem / solution, shown subtly */
.mc-dt-ps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 0 28px;
  padding-block: 20px;
  border-block: 1px solid var(--mc-line);
}
.mc-dt-ps dt {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray2-color, #8A8A99);
}
.mc-dt-ps dt.is-solution { color: var(--heading-color); }
.mc-dt-ps dt.is-solution::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--mc-green);
  vertical-align: middle;
}
.mc-dt-ps dd { margin: 0; font-size: 15px; line-height: 1.6; }

/* GoSaaS cs_list cs_style_1, RTL-safe */
.mc-dt-list li { padding-left: 0; padding-inline-start: 40px; line-height: 1.55; }
.mc-dt-list li:not(:last-child) { margin-bottom: 14px; }
.mc-dt-list .cs_list_icon { left: auto; inset-inline-start: 0; top: 0; line-height: 0; }
.mc-dt-list .cs_heading_color { font-size: 17px; }
.mc-dt-list-sm li { padding-inline-start: 30px; font-size: 15px; }
.mc-dt-list-sm li:not(:last-child) { margin-bottom: 10px; }
.mc-dt-list-sm .cs_list_icon svg { width: 18px; height: 18px; }
.mc-dt-list-sm .cs_list_icon { top: 3px; }
.mc-dt-list-sm .cs_heading_color { font-size: 15px; }
.mc-dt-list-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 40px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--mc-line);
}
.mc-dt-list-cols li:not(:last-child) { margin-bottom: 0; }

/* ---------- Detail hero ---------- */
.mc-dt-hero-text { max-width: 600px; }
.mc-dt-hero .cs_hero_title { font-weight: 500; }
.mc-dt-photo-hero { margin-inline-start: auto; max-width: 500px; }

.mc-dt-metric {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  inset-inline-start: -64px;
  display: grid;
  gap: 2px;
  min-width: 200px;
  max-width: 260px;
  padding: 18px 22px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 24px 48px -20px rgba(10, 10, 16, .32), 0 0 0 1px rgba(10, 10, 16, .04);
  animation: mc-dt-float 6s ease-in-out infinite;
}
.mc-dt-metric-label { font-size: 14px; color: var(--body-color); }
.mc-dt-metric-value { font-family: var(--heading-font); font-size: 38px; font-weight: 600; line-height: 1.15; color: var(--heading-color); }
.mc-dt-metric-sub { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--body-color); }
.mc-dt-metric-sub .mc-icon { flex: none; margin-top: 2px; }

.mc-dt-chip {
  position: absolute;
  z-index: 2;
  top: 36px;
  inset-inline-end: -24px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  padding: 12px 18px;
  border-radius: 15px;
  background: var(--heading-color);
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 24px 48px -20px rgba(10, 10, 16, .4);
  animation: mc-dt-float 7s ease-in-out infinite reverse;
}
.mc-dt-chip strong { color: #fff; font-weight: 600; }
.mc-dt-chip-icon { flex: none; color: var(--mc-green); line-height: 0; }

@keyframes mc-dt-float { 50% { transform: translateY(-10px); } }

/* ---------- Iconbox cards (GoSaaS services) ---------- */
.mc-dt-iconbox.cs_iconbox.cs_style_2.cs_type_1 {
  border-color: var(--mc-line);
  background: #fff;
  box-shadow: none;
  transition: box-shadow .3s ease, transform .3s ease;
}
.mc-dt-iconbox.cs_iconbox.cs_style_2.cs_type_1:hover { box-shadow: 0 20px 40px -24px rgba(10, 10, 16, .25); transform: translateY(-3px); }
.mc-dt-iconbox .cs_iconbox_icon { width: 60px; height: 60px; color: var(--heading-color); }
.cs_iconbox.cs_style_2 .cs_iconbox_icon.mc-dt-ico svg, .mc-dt-iconbox.cs_iconbox.cs_style_2 .cs_iconbox_icon svg { transform: none; }
.mc-dt-tag {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray2-color, #8A8A99);
}
.mc-dt-details { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--mc-line); }

/* ---------- Before / after ---------- */
.mc-dt-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1080px;
  margin-inline: auto;
  border-radius: 15px;
  border: 1px solid var(--mc-line);
  background: #fff;
  overflow: hidden;
}
.mc-dt-vs-col { padding: clamp(28px, 4vw, 48px); }
.mc-dt-vs-col + .mc-dt-vs-col { border-inline-start: 1px solid var(--mc-line); }
.mc-dt-vs-col h3 { margin-bottom: 24px; color: var(--body-color); }
.mc-dt-vs-col.is-with h3 { color: var(--heading-color); }
.mc-dt-vs-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.mc-dt-vs-list li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.55; color: var(--heading-color); }
.mc-dt-vs-list.is-without li { color: var(--body-color); }
.mc-dt-vs-list.is-without .mc-icon { flex: none; margin-top: 3px; color: #A3A3B0; }
.mc-dt-vs-icon { flex: none; line-height: 0; margin-top: 1px; }
.mc-dt-vs-icon svg { width: 20px; height: 20px; }

/* ---------- Numbered steps (GoSaaS cs_iconbox cs_style_4) ---------- */
.mc-dt-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 28px; }
.mc-dt-steps .cs_iconbox.cs_style_4 .cs_iconbox_icon { color: var(--heading-color); }
.mc-dt-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }

/* Product screenshot in a soft frame (smaller "interface" visual) */
.mc-dt-frame {
  position: relative;
  padding: clamp(14px, 2vw, 24px);
  border-radius: 20px;
  background: var(--mc-surface);
}
.mc-dt-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 48px -28px rgba(10, 10, 16, .35);
}

/* ---------- Specs table ---------- */
.mc-dt-specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 0 0 1px var(--mc-line); }
.mc-dt-specs th, .mc-dt-specs td { padding: 18px 28px; border-bottom: 1px solid var(--mc-line); text-align: start; vertical-align: top; }
.mc-dt-specs tr:last-child th, .mc-dt-specs tr:last-child td { border-bottom: 0; }
.mc-dt-specs th { width: 38%; font-weight: 500; color: var(--body-color); }
.mc-dt-specs td { font-weight: 500; color: var(--heading-color); }

/* ---------- Solutions hub cards (GoSaaS cs_post cs_style_2) ---------- */
.mc-dt-tabs-section .mc-pill-tabs { margin-bottom: clamp(32px, 4vw, 48px); }
.mc-dt-post { display: flex; flex-direction: column; height: 100%; }
.mc-dt-post .cs_post_thumbnail { position: relative; aspect-ratio: 16 / 10; }
.mc-dt-post .cs_post_thumbnail img { height: 100%; object-fit: cover; }
.mc-dt-post-icon {
  position: absolute;
  z-index: 1;
  top: 16px;
  inset-inline-start: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--heading-color);
  box-shadow: 0 10px 24px -12px rgba(10, 10, 16, .35);
}
.mc-dt-post .cs_post_content { flex: 1; display: flex; flex-direction: column; padding: 34px 28px 28px; border-color: var(--mc-line); }
.mc-dt-post .cs_post_meta { margin-bottom: 6px; font-size: 14px; color: var(--gray2-color, #8A8A99); }
.mc-dt-post .cs_post_content h3 { -webkit-line-clamp: unset; display: block; }
.mc-dt-post .cs_post_content h3 a:hover { color: var(--mc-green-700); }
.mc-dt-post .cs_post_content > p { font-size: 16px; line-height: 1.65; }
.mc-dt-facts { margin: 20px 0; padding: 16px 0 0; border-top: 1px solid var(--mc-line); display: grid; gap: 12px; font-size: 14px; line-height: 1.55; }
.mc-dt-facts dt { font-weight: 600; color: var(--heading-color); }
.mc-dt-facts dd { margin: 0; }
.mc-dt-more { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 20px; font-weight: 600; color: var(--heading-color); }
.mc-dt-more:hover { color: var(--mc-green-700); }

/* ---------- Solution detail content ---------- */
.mc-dt-sidebar-wrap { padding-block: clamp(8px, 2vw, 24px) 0; }
.mc-dt-stack { display: grid; gap: clamp(72px, 9vw, 112px); min-width: 0; }
.mc-dt-results { padding: clamp(32px, 4vw, 48px) clamp(16px, 3vw, 32px); border-radius: 15px; background: var(--mc-surface); }
.mc-dt-results .cs_funfact_number { font-size: clamp(30px, 3.4vw, 44px); }

.mc-dt-rows { border-top: 1px solid var(--mc-line); }
.mc-dt-row-item {
  display: grid;
  grid-template-columns: 48px 1fr 1fr 1fr;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--mc-line);
  line-height: 1.6;
}
.mc-dt-row-num { font-family: var(--heading-font); font-size: 21px; font-weight: 500; color: var(--heading-color); }
.mc-dt-label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray2-color, #8A8A99);
}
.mc-dt-label.is-accent { color: var(--mc-green-700); }

.mc-dt-testimonial.cs_testimonial.cs_style_1 { width: 100%; height: 100%; background: var(--mc-surface); }
.mc-dt-testimonial blockquote { margin-inline: 0; font-size: 20px; line-height: 1.6; }
.mc-dt-testimonial .cs_quote_icon { width: 140px; height: 140px; bottom: 24px; right: auto; inset-inline-end: 40px; background-image: url("../img/gosaas/quote-right-2.svg"); opacity: .5; }
.mc-dt-testimonial .cs_rating { color: var(--mc-green); }
.mc-dt-avatar { background: var(--heading-color); color: #fff; font-family: var(--heading-font); font-size: 22px; font-weight: 500; }
.mc-dt-testimonial .cs_rating::before, .mc-dt-testimonial .cs_rating_percentage::before { left: 0; }
[dir="rtl"] .mc-dt-testimonial .cs_rating { direction: ltr; }
.mc-dt-story-metrics {
  display: grid;
  gap: 0;
  height: 100%;
  padding: 8px 28px;
  border-radius: 15px;
  border: 1px solid var(--mc-line);
}
.mc-dt-story-metrics .cs_funfact { padding-block: 20px; }
.mc-dt-story-metrics .cs_funfact + .cs_funfact { border-top: 1px solid var(--mc-line); }

/* ---------- Motion ---------- */
.mc-noanim .mc-dt-widget, .mc-noanim .mc-dt-metric, .mc-noanim .mc-dt-chip { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .mc-dt-widget, .mc-dt-metric, .mc-dt-chip { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .mc-dt-widget { inset-inline-end: -24px; }
  .mc-dt-widget.mc-dt-widget-start { inset-inline-start: -24px; }
  .mc-dt-metric { inset-inline-start: -32px; }
  .mc-dt-chip { inset-inline-end: -16px; }
  .mc-dt-row-item { grid-template-columns: 40px 1fr 1fr; }
  .mc-dt-row-item > div:last-child { grid-column: 2 / -1; }
}
@media (max-width: 991px) {
  .mc-dt-row .cs_card_thumbnail, .mc-dt-photo-hero { max-width: 560px; margin-inline: auto; }
  .mc-dt-widget, .mc-dt-widget.mc-dt-widget-start { inset-inline-start: auto; inset-inline-end: 16px; bottom: -28px; width: 58%; }
  .mc-dt-metric { inset-inline-start: 16px; bottom: -24px; }
  .mc-dt-chip { inset-inline-end: 16px; top: 20px; }
  .mc-dt-photo > img.mc-dt-shape { display: none; }
  .mc-dt-vs { grid-template-columns: 1fr; }
  .mc-dt-vs-col + .mc-dt-vs-col { border-inline-start: 0; border-top: 1px solid var(--mc-line); }
}
@media (max-width: 767px) {
  .mc-dt-list-cols, .mc-dt-steps-grid, .mc-dt-ps { grid-template-columns: 1fr; }
  .mc-dt-ps { gap: 16px; }
  .mc-dt-row-item { grid-template-columns: 1fr; gap: 14px; }
  .mc-dt-row-item > div:last-child { grid-column: auto; }
  .mc-dt-specs th, .mc-dt-specs td { display: block; width: 100%; padding: 4px 20px; border: 0; }
  .mc-dt-specs th { padding-top: 16px; font-size: 14px; }
  .mc-dt-specs td { padding-bottom: 16px; border-bottom: 1px solid var(--mc-line); }
  .mc-dt-testimonial.cs_testimonial.cs_style_1 { padding: 28px 22px; }
  .mc-dt-testimonial blockquote { font-size: 17px; }
  .mc-dt-metric { min-width: 0; max-width: 70%; padding: 14px 16px; }
  .mc-dt-metric-value { font-size: 30px; }
  .mc-dt-chip { max-width: 72%; padding: 10px 14px; font-size: 13px; }
  .mc-dt-jump a { padding: 8px 12px; font-size: 14px; }
}
