/*
 * GoSaaS alignment layer. Loaded last.
 * Brings the shared MyCaly components back to the template's visual language:
 * white / light-grey surfaces, near-black headings and dark bands, and MyCaly green
 * used only as the single accent (buttons, links, small highlights).
 */

/* ---------- Header ---------- */
.mc-header .cs_main_header { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); }
.mc-header .cs_nav .cs_nav_list ul a:hover,
.mc-header .cs_nav .cs_nav_list ul a[aria-current="page"] { color: var(--mc-green-700); }
.mc-header .cs_nav .cs_nav_list > li.active > a { color: var(--heading-color); }
.mc-header .cs_nav .cs_nav_list > li.active > a::before { width: 100%; }
.mc-header-cta.cs_btn.cs_style_1:hover { background-color: var(--mc-primary); color: #fff; }
.mc-header .mc-lang > button { border-color: var(--mc-line); font-weight: 600; }

/* ---------- Mega menu ---------- */
.mc-mega-panel { list-style: none; }
.mc-mega-heading {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray2-color);
}
.mc-mega-link {
  display: flex !important;
  gap: 14px;
  align-items: flex-start;
  padding: 12px !important;
  border-radius: 12px;
  line-height: 1.35 !important;
  color: var(--heading-color) !important;
  transition: background-color .2s ease;
}
.mc-mega-link:hover, .mc-mega-link[aria-current="page"] { background: var(--mc-surface); }
.mc-mega-link:hover strong, .mc-mega-link[aria-current="page"] strong { color: var(--mc-green-700); }
.mc-mega-link.mc-compact { align-items: center; padding: 8px 10px !important; gap: 10px; }
.mc-mega-link.mc-compact strong { font-size: 15px; }
.mc-mega-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--mc-line);
  background: #fff;
  color: var(--heading-color);
}
.mc-compact .mc-mega-icon { width: 30px; height: 30px; border-radius: 8px; }
.mc-mega-link:hover .mc-mega-icon { border-color: var(--mc-primary); color: var(--mc-green-700); }
.mc-mega-text strong { display: block; font-family: var(--heading-font); font-size: 16px; font-weight: 500; }
.mc-mega-text span { display: block; margin-top: 2px; font-size: 14px; color: var(--body-color); }
.mc-mega-all {
  display: inline-flex !important;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding: 0 12px !important;
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-color) !important;
}
.mc-mega-all:hover { color: var(--mc-green-700) !important; }
.mc-mega-promo {
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 12px !important;
  border-radius: 15px;
  background: var(--mc-surface);
  color: var(--heading-color) !important;
}
.mc-mega-promo img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
.mc-mega-promo strong { font-family: var(--heading-font); font-size: 18px; font-weight: 500; line-height: 1.3; }
.mc-mega-promo span { font-size: 14px; font-weight: 600; color: var(--mc-green-700); }

@media (min-width: 1200px) {
  .cs_nav .cs_nav_list > li.mc-mega { position: static; }
  .cs_nav .cs_nav_list > li.mc-mega > ul.mc-mega-panel {
    left: 50%;
    width: min(1060px, calc(100vw - 48px));
    padding: 24px;
    border-radius: 15px;
    box-shadow: 0 30px 60px -20px rgba(10, 10, 16, .18), 0 0 0 1px rgba(10, 10, 16, .06);
    transform: translateX(-50%);
    display: flex !important;
    gap: 24px;
  }
  .cs_nav .cs_nav_list > li.mc-mega > ul.mc-mega-panel::before { display: none; }
  .mc-mega-main { flex: 1; min-width: 0; }
  .mc-mega-aside { flex: 0 0 280px; }
  .mc-mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
  .mc-mega-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
  .mc-mega-cols > div:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; column-gap: 8px; }
  .mc-mega-cols > div:first-child .mc-mega-heading { grid-column: 1 / -1; }
}
@media (max-width: 1199px) {
  .mc-mega-aside, .mc-mega-heading, .mc-mega-text span, .mc-mega-icon { display: none !important; }
  .mc-mega-link, .mc-mega-link.mc-compact { padding: 10px 15px !important; }
  .mc-mega-text strong, .mc-mega-link.mc-compact strong { font-size: 16px; font-weight: 400; font-family: var(--body-font); }
  .mc-mega-all { margin: 0; padding: 10px 15px !important; }
  .mc-mega-cols > div + div { margin-top: 6px; }
  .cs_main_header_right .mc-header-login, .cs_main_header_right .mc-lang { display: none; }
  .mc-mobile-extra { display: block !important; padding: 16px 15px 8px; border-top: 1px solid var(--mc-line); margin-top: 12px; }
}
.mc-mobile-extra { display: none; }

/* ---------- Footer (GoSaaS footer-4, light) ---------- */
.mc-footer { background: #fff; color: var(--body-color); border-top: 1px solid var(--mc-line); }
.mc-footer a { color: var(--body-color); }
.mc-footer a:hover { color: var(--heading-color); }
.mc-footer .cs_footer_widget_title { color: var(--heading-color); font-size: 18px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.mc-footer .cs_footer_medu li + li { margin-top: 12px; }
.mc-footer-brand img { height: 40px; width: auto; filter: none; }
.mc-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--mc-surface); font-size: 14px; font-weight: 500; }
.mc-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mc-green); }
.mc-footer-newsletter {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px 48px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 15px;
  background: var(--mc-surface);
}
.mc-footer-newsletter h2 { color: var(--heading-color); }
.mc-footer-newsletter .cs_newsletter_form { max-width: none; }
.mc-footer-newsletter .cs_newsletter_input { width: 100%; height: 58px; padding: 0 170px 0 24px; border: 1px solid var(--mc-line) !important; background: #fff; outline: 0; }
.mc-footer-newsletter .cs_newsletter_input:focus { border-color: var(--mc-primary) !important; box-shadow: 0 0 0 4px rgba(75, 103, 144, .12); }
[dir="rtl"] .mc-footer-newsletter .cs_newsletter_input { padding: 0 24px 0 170px; }
.mc-footer-newsletter .cs_newsletter_form .cs_btn { position: absolute; top: 50%; inset-inline-end: 6px; height: 46px; margin: 0; padding-block: 0; transform: translateY(-50%); }
[dir="rtl"] .mc-footer-newsletter .cs_newsletter_form .cs_btn { right: auto; }
.mc-footer-newsletter altcha-widget { margin-top: 12px; }
@media (max-width: 991px) { .mc-footer-newsletter { grid-template-columns: 1fr; } }
@media (max-width: 575px) {
  .mc-footer-newsletter .cs_newsletter_input { padding: 0 20px; }
  .mc-footer-newsletter .cs_newsletter_form .cs_btn { position: static; width: 100%; justify-content: center; margin-top: 10px; transform: none; }
}
.mc-footer-bottom { padding: 18px 28px; border-top: 0; margin-bottom: 30px; color: var(--heading-color); }
.mc-footer-social a { background: #fff; color: var(--heading-color); }
.mc-footer-social a:hover { background: var(--mc-primary); color: #fff; }

/* ---------- Dark CTA band ---------- */
.mc-cta-dark { padding: clamp(56px, 8vw, 110px) 24px; }
.mc-cta-dark .mc-cta-text { color: rgba(255, 255, 255, .7); max-width: 640px; margin-inline: auto; }
.cs_btn.mc-btn-ghost-light { border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.cs_btn.mc-btn-ghost-light:hover { background: #fff; color: var(--heading-color); }

/* ---------- Shared MyCaly components, toned down to GoSaaS ---------- */
.mc-hero {
  background: #fff;
}
.mc-hero::before {
  background-image: none;
  background: radial-gradient(520px 320px at 0% 0%, rgba(75, 103, 144, .08), transparent 70%);
  mask-image: none;
}
.mc-eyebrow,
.mc-eyebrow.mc-eyebrow-navy,
.mc-bg-navy .mc-eyebrow {
  padding: 0;
  margin-bottom: 14px;
  background: none;
  border-radius: 0;
  color: var(--body-color);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}
.mc-eyebrow .mc-icon { color: var(--mc-green); }
.mc-bg-navy .mc-eyebrow { color: rgba(255, 255, 255, .7); }
.mc-h1 { font-size: clamp(38px, 5vw, 68px); font-weight: 500; letter-spacing: -.01em; line-height: 1.12; }
.mc-h2 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 500; letter-spacing: 0; }
.mc-h3 { font-weight: 500; }
.mc-lead { color: var(--body-color); }
.mc-text-green { color: inherit; position: relative; }
.mc-answer-box {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--body-color);
  font-size: 18px;
  line-height: 1.65;
}
.mc-section-head { margin-bottom: clamp(32px, 5vw, 60px); }
.mc-bg-soft, .mc-bg-green-soft { background: var(--mc-surface); }
.mc-bg-navy { background: var(--heading-color); }

.mc-hero-media > picture img, .mc-media-frame img { border-radius: 15px; box-shadow: none; border: 0; }
.mc-float-card { border-radius: 15px; border: 0; background: #fff; box-shadow: 0 20px 40px -18px rgba(10, 10, 16, .25); backdrop-filter: none; }

.mc-card { border-radius: 15px; border-color: var(--mc-line); }
a.mc-card:hover, .mc-card.mc-hover:hover { border-color: var(--mc-line); box-shadow: var(--mc-shadow); }
.mc-card h3 { font-weight: 500; }
.mc-card-icon, .mc-card-icon.mc-navy { background: var(--mc-surface); color: var(--heading-color); border-radius: 12px; }
.mc-card:hover .mc-card-icon { background: var(--mc-primary); color: #fff; }
.mc-card-sub { color: var(--gray2-color); letter-spacing: .04em; }
.mc-card-link { color: var(--heading-color); }
.mc-card-link:hover, a.mc-card:hover .mc-card-link { color: var(--mc-green-700); }
.mc-tag, .mc-tag.mc-tag-green, .mc-tag.mc-tag-navy { background: var(--mc-surface); border-color: transparent; color: var(--body-color); }

.mc-stat { border: 0; box-shadow: none; background: transparent; padding: 0; }
.mc-stat-value { color: var(--heading-color); font-weight: 600; font-size: clamp(36px, 4vw, 56px); }
.mc-bg-navy .mc-stat { background: transparent; }
.mc-bg-navy .mc-stat-value { color: #fff; }

.mc-check-list li .mc-icon, .mc-inline-checks .mc-icon, .mc-card-details .mc-icon { color: var(--mc-green); }

.mc-pill-tabs { background: var(--mc-surface); border-color: transparent; }
.mc-pill-tabs button[aria-selected="true"] { background: var(--heading-color); }
.mc-billing-toggle { background: var(--mc-surface); border-color: transparent; }
.mc-billing-toggle button[aria-selected="true"] { background: var(--heading-color); }

.mc-step-btn[aria-selected="true"] { border-color: var(--heading-color); background: #fff; box-shadow: 0 10px 30px -18px rgba(10, 10, 16, .4); }
.mc-step-btn[aria-selected="true"] .mc-step-num { color: var(--mc-green-700); }
.mc-step-panel { background: var(--heading-color); }

.mc-timeline::before { border-color: var(--mc-line); }
.mc-timeline-num { border-color: var(--heading-color); color: var(--heading-color); }

.mc-case { background: var(--heading-color); }
.mc-case-metric { background: #16161E; }

.mc-vs-col.mc-vs-bad, .mc-vs-col.mc-vs-good { background: #fff; border-color: var(--mc-line); }
.mc-challenge .mc-impact { background: var(--mc-surface); }
.mc-challenge .mc-impact small { color: var(--heading-color); }

.mc-plan.is-featured { background: var(--mc-primary); border-color: var(--mc-primary); color: rgba(255, 255, 255, .85); }
.mc-plan.is-featured h3, .mc-plan.is-featured .mc-plan-price strong, .mc-plan.is-featured .mc-plan-limits li span:last-child { color: #fff; }
.mc-plan.is-featured .mc-plan-price span, .mc-plan.is-featured .mc-plan-limits li span:first-child { color: rgba(255, 255, 255, .8); }
.mc-plan.is-featured .mc-plan-limits { border-color: rgba(255, 255, 255, .25); }
.mc-plan.is-featured .cs_btn { background: #fff !important; color: var(--heading-color) !important; }
.mc-plan-badge { background: var(--heading-color); }

.mc-sidenav a[aria-current="page"] { background: var(--mc-surface); color: var(--heading-color); }
.mc-sidenav a[aria-current="page"] .mc-icon { color: var(--mc-green); }

.mc-hub-center { box-shadow: 0 0 0 14px var(--mc-surface), 0 0 0 30px rgba(10, 10, 16, .02), var(--mc-shadow); }
.mc-hub-node::after { border-color: var(--mc-line); }

.mc-quote-metric { background: var(--mc-surface); }
.mc-quote-metric strong { color: var(--heading-color); }
.mc-duo-plus { background: var(--heading-color); box-shadow: none; }

.mc-input:focus, .mc-form-demo input:focus, .mc-form-demo select:focus, .mc-form-demo textarea:focus { border-color: var(--heading-color); box-shadow: 0 0 0 4px rgba(10, 10, 16, .06); }

/* GoSaaS doodle underline for a highlighted word in headings */
.mc-scribble { position: relative; display: inline-block; }
.mc-scribble::after {
  content: "";
  position: absolute;
  inset-inline: -4%;
  bottom: -.22em;
  height: .35em;
  background: url("../img/gosaas/vector.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* ?noanim (screenshots / QA): show scroll-animated content immediately */
.mc-noanim .wow { visibility: visible !important; animation: none !important; }

/* Template grey backgrounds: keep them neutral (they were purple-tinted in GoSaaS). */
.cs_gray_bg_1, .cs_gray_bg_6, .cs_gray_bg_8 { background-color: #F7F7F9; }
.cs_gray_bg_2, .cs_gray_bg_7, .cs_gray_bg_9 { background-color: #F3F3F6; }

/* Integrations as GoSaaS iconbox cards (integration.blade "Essential Tools Integration"). */
.mc-integration-grid .cs_iconbox { height: 100%; padding: 36px 24px; }
.mc-integration-grid .cs_iconbox_icon img { width: 64px; height: 64px; object-fit: contain; }

/* RTL: the logo sits on the right, so the mobile menu toggle goes left. */
@media (max-width: 1199px) {
  [dir="rtl"] .cs_menu_toggle { right: auto !important; left: 0 !important; }
  [dir="rtl"] .cs_menu_dropdown_toggle { right: auto; left: 0; }
}

/* Button rows: the template adds margin-top to card buttons, which splits wrapped rows. */
.mc-actions .cs_btn.cs_style_1 { margin-top: 0 !important; }

/* GoSaaS "accent" checks/stars: use the MyCaly green (the pale accent stays for blobs only). */
.cs_accent_color { color: var(--mc-green); }
.cs_rating { color: var(--mc-amber); }

/* Inline FAQ (solution pages): compact stack */
section .d-grid > .cs_accordian { margin: 0; }

/* ---------- Live demo showcase (browser + phone mockups, GoSaaS app-landing) ---------- */
.mc-live-row + .mc-live-row { margin-top: clamp(64px, 8vw, 110px); }
.mc-device-stage { position: relative; padding-bottom: 40px; padding-inline-end: 90px; }
.mc-device-browser {
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--mc-line);
  box-shadow: 0 30px 60px -30px rgba(10, 10, 16, .35);
  transition: transform .3s ease;
}
.mc-device-stage:hover .mc-device-browser { transform: translateY(-4px); }
.mc-device-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--mc-line); background: #F7F7F9; font-size: 12px; color: var(--gray2-color); }
.mc-device-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E2E2E8; }
.mc-device-bar span { margin-inline-start: 10px; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--mc-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-device-browser img { display: block; width: 100%; height: auto; }
.mc-device-phone {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 190px;
  overflow: hidden;
  border: 7px solid var(--heading-color);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 50px -20px rgba(10, 10, 16, .45);
  aspect-ratio: 9 / 17;
}
.mc-device-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mc-live-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--mc-primary); text-transform: uppercase; letter-spacing: .06em; }
.mc-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mc-green); box-shadow: 0 0 0 4px rgba(26, 204, 141, .2); animation: mc-live 1.8s ease-in-out infinite; }
@keyframes mc-live { 50% { box-shadow: 0 0 0 8px rgba(26, 204, 141, 0); } }
.mc-live-copy .cs_btn { gap: 10px; }
@media (max-width: 575px) {
  .mc-device-stage { padding-inline-end: 50px; padding-bottom: 30px; }
  .mc-device-phone { width: 120px; border-width: 5px; border-radius: 20px; }
}

.mc-live-steps { color: rgba(255, 255, 255, .7); }
.mc-shot-card { padding: 16px 16px 26px; border-radius: 15px; background: #16161E; border: 1px solid rgba(255, 255, 255, .08); }
.mc-shot-media { overflow: hidden; margin-bottom: 22px; border-radius: 10px; aspect-ratio: 16 / 10; background: #fff; }
.mc-shot-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mc-shot-num { display: block; margin-bottom: 6px; font-family: var(--heading-font); font-size: 14px; font-weight: 600; color: var(--mc-green); }
.mc-shot-card, .mc-shot-card h3 { padding-inline: 10px; }
.mc-shot-card .mc-shot-media { margin-inline: -10px; }

/* ---------- App-landing style colour hero (demo page) ---------- */
.mc-app-hero { background: var(--mc-primary); color: rgba(255, 255, 255, .82); }
.mc-app-hero .mc-breadcrumb, .mc-app-hero .mc-breadcrumb a { color: rgba(255, 255, 255, .7); }
.mc-app-hero .mc-breadcrumb [aria-current="page"] { color: #fff; }
.mc-app-hero .mc-breadcrumb li + li::before { color: rgba(255, 255, 255, .35); }
.mc-app-hero .mc-kicker { color: var(--mc-green); text-transform: uppercase; letter-spacing: .08em; }
.mc-app-hero .mc-answer-box { color: #fff; }
.mc-app-hero .mc-demo-checks li { color: #fff; }
.mc-app-hero .mc-device-browser { border-color: rgba(255, 255, 255, .25); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.mc-app-hero-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); pointer-events: none; }
.mc-ring-1 { width: 620px; height: 620px; top: -260px; inset-inline-end: -160px; }
.mc-ring-2 { width: 420px; height: 420px; bottom: -220px; inset-inline-start: -140px; border-color: rgba(26, 204, 141, .3); }
.cs_btn.mc-btn-light { background: #fff; color: var(--heading-color); }
.cs_btn.mc-btn-light:hover { background: var(--mc-green); color: #fff; }

/* ---------- Logo strips (GoSaaS brand marquee) ---------- */
.mc-logo-strip { padding-block: 56px 8px; }
.mc-logo-strip + .mc-logo-strip { padding-top: 32px; }
.mc-logo-strip .cs_horizontal_slider_wrapper { max-width: 1000px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mc-logo-item { display: inline-flex; align-items: center; gap: 10px; flex: none; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.mc-logo-item:hover { filter: none; opacity: 1; }
.mc-logo-item img { width: auto; height: 30px; }
.mc-logo-item.is-wordmark img { height: 28px; }
.mc-logo-item span { font-family: var(--heading-font); font-size: 20px; font-weight: 600; color: var(--heading-color); white-space: nowrap; }
[dir="rtl"] .mc-logo-strip .cs_brands_list { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .mc-logo-strip .cs_brands_list { animation: none; } }
