/* ============================================================
   Mcxdee - custom styles
   Design language: white base, light-gray surfaces, royal-blue
   accent, pastel cards, bold sans headlines, pill buttons.
   ============================================================ */

:root {
  --royal: #2a3ce8;
  --royal-600: #1f30d6;
  --royal-50: #eef0fe;
  --ink: #0b0b0b;
  --muted: #6b7280;
  --line: #d1d1d1ff;
  --surface: #f4f4f4;
  --premium-shadow: 0 1px 0 rgba(16,16,16,0.04), 0 10px 30px -22px rgba(16,16,16,0.18);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: gray transparent;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

/* ===== Brand lockup (logo + wordmark) ===== */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.brand-lockup__mark {
  height: 21px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* Optical alignment: nudge the geometric mark so it sits visually centred
     against the cap-height of the wordmark rather than the bounding box. */
  transform: translateY(-0.5px);
}

.brand-lockup__word {
  font-family: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ink);
  /* Slightly raise the baseline so the wordmark optically aligns
     with the centre of the icon. */
  line-height: 1;
}

@media (max-width: 480px) {
  .brand-lockup__mark { height: 18px; }
  .brand-lockup__word { font-size: 17px; }
}

/* ===== Header scrolled state ===== */
header.sticky {
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
header.sticky.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 8px 28px -22px rgba(0, 0, 0, 0.2);
}

/* ===== Section label: dot Label ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 400;
  color: #6b6a65;
  letter-spacing: -0.005em;
}
.section-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--royal);
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 24px;
  border-radius: 999px;
  background: var(--royal);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: 0 12px 28px -24px rgba(42, 60, 232, 0.7);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: var(--royal-600);
  box-shadow: 0 14px 30px -24px rgba(42, 60, 232, 0.8);
}
.btn-primary:active {
  transform: translateY(1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 18px;
  font-weight: 500;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
}

/* Compact button (header CTA) */
.btn-primary--sm {
  min-height: 48px;
  padding: 8px 18px;
  font-size: 16px;
  font-weight: 500;
  gap: 6px;
}

/* Header CTA: outlined pill (like reference) */
.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(11, 11, 11, 0.7);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-header:hover {
  border-color: rgba(11, 11, 11, 0.4);
  color: rgba(11, 11, 11, 0.85);
}

/* ===== Mobile menu (hamburger + dropdown) ===== */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.12);
}
.mobile-menu.is-open {
  display: block;
}

.mobile-menu__panel {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 8px 20px 20px;
  box-shadow: none;
  transform: none;
  display: flex;
  flex-direction: column;
  max-height: none;
  overflow: visible;
}

.mobile-menu__top {
  display: none;
}
.mobile-menu-close {
  display: none;
}

.mobile-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu__list li + li {
  border-top: 1px solid var(--line);
}
.mobile-menu__list a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: color 0.15s ease;
}
.mobile-menu__list a:hover {
  color: var(--muted);
}

.mobile-menu__cta {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  min-height: 52px;
  font-size: 15.5px;
}
.mobile-menu__note {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 768px) {
  .mobile-menu,
  .mobile-menu-toggle { display: none !important; }
}

/* ===== Floating mobile CTA bar ===== */
.mobile-cta {
  position: fixed;
  left: clamp(12px, 4vw, 18px);
  right: clamp(12px, 4vw, 18px);
  bottom: clamp(10px, 3vw, 16px);
  z-index: 35;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-cta__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: min(100%, 320px);
  min-height: 0;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--royal);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow:
    0 10px 26px -12px rgba(31, 48, 214, 0.55),
    0 4px 10px -6px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.15s ease;
}
.mobile-cta__btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.mobile-cta__btn:hover { background: var(--royal-600); }
.mobile-cta__btn:active { transform: translateY(1px); }

@media (max-width: 380px) {
  .mobile-cta__btn {
    max-width: 100%;
    padding: 9px 14px;
    font-size: 13px;
  }
  .mobile-cta__btn svg {
    width: 13px;
    height: 13px;
  }
}

/* Hide on desktop, when menu open, or when final CTA section is visible */
@media (min-width: 768px) {
  .mobile-cta { display: none !important; }
}
body.menu-open .mobile-cta,
body.in-cta .mobile-cta {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}
body.in-cta .mobile-cta * { pointer-events: none; }

/* Reserve room above the mobile CTA so it doesn't cover footer content */
@media (max-width: 767px) {
  body {
    padding-bottom: clamp(64px, 18vw, 74px);
  }
}

/* ===== MARQUEE ===== */
.marquee-section {
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 18px 0 26px;
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 5%,
    black 95%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 5%,
    black 95%,
    transparent 100%
  );
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: marquee 64s linear infinite;
}

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

/* ===== Client website screenshots inside marquee ===== */
.client-shot {
  flex: 0 0 390px;
  margin: 0;
  background: #fff;
  border: 1px solid #e8e5dd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 44px -34px rgba(0, 0, 0, 0.32);
}

.client-shot img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  background: #f7f7f7;
}

/* ===== MOCKUPS inside marquee ===== */
.mockup {
  flex: 0 0 280px;
  background: #fff;
  border: 1px solid #e8e5dd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.25);
}

.mockup--cream {
  background: #fbf6ea;
}

.mockup--dark {
  background: #0f0f0f;
  border-color: #1a1a1a;
}

.mockup__bar {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
  border-bottom: 1px solid #eeebe3;
  background: rgba(255, 255, 255, 0.6);
}

.mockup--dark .mockup__bar {
  border-bottom-color: #1f1f1f;
  background: rgba(255, 255, 255, 0.03);
}

.mockup__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dcd9d1;
}

.mockup--dark .mockup__bar span {
  background: #2a2a2a;
}

.mockup__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.mockup__body--dark {
  color: #f3f3f3;
}

.chip {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f3f3f3;
}

.chip--dark {
  background: #111;
  color: #fff;
}
.chip--yellow {
  background: #fbf1d1;
  color: #5a4a12;
}
.chip--lilac {
  background: #e7def0;
  color: #4a3b64;
}
.chip--sky {
  background: #dce6ef;
  color: #2e4255;
}

.mockup__body .h {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.mockup__body--dark .h {
  color: #f4f4f4;
}

.row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #222;
}
.pill--y { background: #fbf1d1; }
.pill--p { background: #fbdde1; }
.pill--g { background: #e1eec7; }

.bar-line {
  height: 6px;
  background: #eeece2;
  border-radius: 4px;
  width: 100%;
}
.mockup__body--dark .bar-line {
  background: #222;
}
.bar-line.short { width: 60%; }

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tile {
  height: 60px;
  border-radius: 10px;
}
.tile.small { height: 44px; }
.tile.tall { height: 90px; }

.tile--yellow { background: #fbf1d1; }
.tile--pink { background: #fbdde1; }
.tile--green { background: #e1eec7; }
.tile--mint { background: #d9e9de; }
.tile--sky { background: #dce6ef; }
.tile--lilac { background: #e7def0; }
.tile--peach { background: #fbe4d2; }

.cta-row {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.btn-mini {
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
}
.btn-mini--ghost {
  background: transparent;
  color: inherit;
  border: 1px solid #e6e3d9;
}
.mockup__body--dark .btn-mini--ghost {
  border-color: #262626;
  color: #ddd;
}
.btn-mini--light {
  background: #fff;
  color: #111;
}

/* ===== Reveal animation hook ===== */
.reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1), opacity 0.6s ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BEFORE / AFTER OUTCOME SECTION ===== */
.outcome-section {
  position: relative;
}

.why-inline {
  display: none;
}

.outcome-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: #f2f2f2;
  border: none;
  color: var(--ink);
  margin-bottom: 24px;
  align-self: flex-start;
}

.outcome-tag--after {
  background: var(--royal);
  color: #fff;
}

.outcome-intro {
  max-width: 690px;
  margin: 0 auto 4rem;
  text-align: center;
}

.outcome-intro h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.outcome-intro p {
  max-width: 540px;
  margin: 16px auto 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.outcome-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 40px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: none;
  box-shadow: none;
}

.outcome-card::before {
  content: none;
}

.outcome-card--before {
  background: #fff;
}

.outcome-card--after {
  background: #111111;
  color: #fff;
}

.outcome-card--after::before {
  content: none;
}

.outcome-card__head,
.outcome-list {
  position: relative;
  z-index: 1;
}

.outcome-card__head h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.outcome-card__head p {
  margin-top: 14px;
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--muted);
}

.outcome-card--after .outcome-card__head p {
  color: rgba(255, 255, 255, 0.72);
}

.outcome-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 32px 0 0;
}

.outcome-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  font-size: 15.5px;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(11, 11, 11, 0.82);
}

.outcome-card--after .outcome-list li {
  color: rgba(255, 255, 255, 0.86);
}

.outcome-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.outcome-icon--warning {
  color: rgba(11, 11, 11, 0.75);
  background: transparent;
  border: 1.5px solid rgba(11, 11, 11, 0.22);
}

.outcome-icon--success {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.outcome-media { display: none; }

.outcome-cta {
  margin: 16px auto 0;
  padding: 16px 18px;
  max-width: 780px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f8f8;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.outcome-cta p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}

@media (min-width: 860px) {
  .before-after-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.why-panel {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.why-panel__intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
}

.why-panel__intro h2 {
  max-width: 680px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(42, 60, 232, 0.08);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-grid .feature-card:nth-child(1) {
  background: linear-gradient(145deg, #fff, #fbf1d1);
}

.why-grid .feature-card:nth-child(2) {
  background: linear-gradient(145deg, #fff, #eef0fe);
}

.why-grid .feature-card:nth-child(3) {
  background: linear-gradient(145deg, #fff, #e1f1e4);
}

.why-grid .feature-card:nth-child(4) {
  background: linear-gradient(145deg, #fff, #fbdde1);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.25);
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--royal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(42, 60, 232, 0.14);
}

.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.feature-card__desc {
  font-size: 14.5px;
  color: #4a4a45;
  line-height: 1.55;
  margin-top: auto;
}

/* ===== SERVICE CARDS ===== */
.services-intro {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
}

.services-intro h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.services-intro p {
  max-width: 500px;
  margin: 16px auto 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
}

.service-card {
  border-radius: 28px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(16,16,16,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -32px rgba(11, 11, 11, 0.24);
}

@media (min-width: 768px) {
  .service-card {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 14px;
  }
  .service-card.md\:col-span-2 {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-card__left {
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 240px;
}

.service-card__tag {
  align-self: flex-start;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royal);
  background: var(--royal-50);
  border: 1px solid rgba(42, 60, 232, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
}

.service-card__title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 8px;
}

.service-card__desc {
  font-size: 15.5px;
  color: #4a4a45;
  line-height: 1.6;
  max-width: 34ch;
}

.service-card__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--royal);
  border-bottom: 1px solid rgba(42, 60, 232, 0.3);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.2s, color 0.2s;
}
.service-card__link:hover {
  border-color: var(--royal);
}

.service-card__right {
  border-radius: 20px;
  padding: 26px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
}

.service-card__right--featured {
  background: linear-gradient(135deg, #d4f4a6, #eef0fe);
}

/* Browser mockup inside featured service card */
.browser {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ececec;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.22);
}
.browser__bar {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
.browser__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e2e2;
}
.browser__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.browser__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.browser__nav .dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #0b0b0b;
}
.browser__nav .line {
  height: 6px;
  background: #eee;
  border-radius: 999px;
}
.browser__nav .line.short { width: 80px; }
.browser__nav .line.xshort { width: 36px; }

.browser__hero {
  padding: 18px 2px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.browser__hero .line {
  height: 10px;
  background: #1a1a1a;
  border-radius: 4px;
}
.browser__hero .line.xl { width: 85%; }
.browser__hero .line.lg {
  width: 55%;
  background: #c2c0b6;
  height: 8px;
}
.pill-cta {
  font-size: 11px;
  background: var(--royal);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  margin-top: 4px;
}

.browser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.bx {
  height: 56px;
  border-radius: 8px;
}
.bx--y { background: #fbf1d1; }
.bx--p { background: #fbdde1; }
.bx--g { background: #e1eec7; }

/* SEO score card */
.seo-card {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
}
.seo-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #2a3620;
  font-weight: 500;
}
.seo-card__row .pct {
  font-weight: 600;
  font-size: 14px;
}
.seo-card__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.08);
  overflow: hidden;
  margin-bottom: 4px;
}
.seo-card__bar span {
  display: block;
  height: 100%;
  background: #0b0b0b;
  border-radius: 999px;
}

/* Check list */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #3d3a2d;
  font-weight: 500;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.55);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0b0b0b;
  position: relative;
  flex-shrink: 0;
}
.tick::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 4px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  top: 5px;
  left: 5px;
  transform: rotate(-45deg);
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 860px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    gap: 32px;
  }
}
.plan:hover {
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.18);
}

.plan--dark {
  background: #0b0b0b;
  color: #f5f5f5;
  border-color: #0b0b0b;
}

.plan--gradient {
  background: linear-gradient(160deg, #f8f7f4 0%, #eef0fe 50%, #f0ecff 100%);
  border: 1px solid rgba(42, 60, 232, 0.08);
}
.plan--gradient:hover {
  box-shadow: 0 20px 50px -30px rgba(42, 60, 232, 0.15);
}

.plan__badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--royal);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.plan__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan__sub {
  font-size: 13.5px;
  color: #6b6a65;
  margin-top: 6px;
  line-height: 1.5;
}
.plan--dark .plan__sub {
  color: rgba(255, 255, 255, 0.6);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-top: 1px dashed #e2dfd5;
  border-bottom: 1px dashed #e2dfd5;
  padding-top: 14px;
  padding-bottom: 14px;
}
.plan--dark .plan__price {
  border-color: rgba(255, 255, 255, 0.12);
}
.plan__price .currency {
  font-size: 18px;
  font-weight: 500;
}
.plan__price .amount {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.plan__price .per {
  font-size: 13px;
  color: #6b6a65;
  margin-left: 6px;
}
.plan--dark .plan__price .per {
  color: rgba(255, 255, 255, 0.55);
}

.plan__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.plan__btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.plan__btn--ghost:hover {
  border-color: var(--ink);
}
.plan__btn--light {
  background: var(--royal);
  color: #fff;
}
.plan__btn--light:hover {
  background: var(--royal-600);
}

.plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: #3a3a36;
}
.plan__list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.plan__list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(42, 60, 232, 0.12);
  border: 1.5px solid #2a3ce8;
  flex-shrink: 0;
  position: relative;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232a3ce8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.plan__list--dark {
  color: rgba(255, 255, 255, 0.85);
}
.plan__list--dark li::before {
  background-color: #333333;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}

/* ===== FAQ ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq__item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: background 0.2s, box-shadow 0.2s;
}
.faq__item[open] {
  background: #fff;
  box-shadow: 0 10px 30px -26px rgba(0, 0, 0, 0.2);
}
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  position: relative;
  border-radius: 999px;
  background: var(--royal);
  transition: background 0.2s, transform 0.3s;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 2px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.faq__icon::before {
  width: 12px;
  height: 1.8px;
}
.faq__icon::after {
  width: 1.8px;
  height: 12px;
}
.faq__item[open] .faq__icon {
  background: var(--royal);
  transform: rotate(45deg);
}
.faq__a {
  padding: 0 22px 20px 22px;
  font-size: 14.5px;
  color: #4a4a45;
  line-height: 1.6;
  max-width: 60ch;
}

/* ===== FINAL CTA ===== */
.cta-card {
  position: relative;
  background: #0b0b0b;
  border: none;
  border-radius: 16px;
  padding: 48px 32px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

@media (min-width: 768px) {
  .cta-card { padding: 64px 48px; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #d4d4d4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #bbb;
}

/* ===== Responsive tweaks ===== */

/* Tablet */
@media (max-width: 860px) {
  .btn-primary, .btn-ghost {
    min-height: 50px;
    padding: 8px 20px;
    font-size: 16px;
  }
  .plan__btn {
    min-height: 50px;
    font-size: 16px;
  }
  .outcome-card { padding: 28px; }
}

/* Mobile */
@media (max-width: 640px) {
  /* Marquee */
  .marquee { padding: 10px 0 22px; }
  .marquee__track { gap: 14px; animation-duration: 58s; }
  .client-shot { flex-basis: 280px; border-radius: 8px; }
  .client-shot img { height: 320px; }

  /* Buttons — full width on mobile */
  .btn-primary, .btn-ghost {
    min-height: 48px;
    padding: 8px 18px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }

  /* Section headings */
  .section-label { font-size: 14px; }

  /* Why Mcxdee */
  .outcome-intro { text-align: center; }
  .outcome-intro h2 { font-size: 28px; }
  .outcome-card { padding: 22px; min-height: auto; border-radius: 8px; }
  .outcome-list li { align-items: flex-start; font-size: 14px; }
  .outcome-cta { align-items: stretch; flex-direction: column; }
  .outcome-cta .btn-primary { justify-content: center; width: 100%; }

  /* Process */
  .mockup { flex: 0 0 240px; }
  .mockup__body { min-height: 200px; }

  /* Benefits cards */
  .why-panel { padding: 0; border-radius: 0; }
  .why-panel__intro h2 { font-size: 28px; }
  .why-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 140px; }

  /* Pricing */
  .plan { padding: 24px 20px; }
  .plan__price .amount { font-size: 36px; }
  .plan__btn {
    min-height: 48px;
    font-size: 15px;
  }

  /* FAQ */
  .faq__q { font-size: 14.5px; padding: 16px 18px; }
  .faq__a { padding: 0 18px 16px; font-size: 14px; }
  .faq__icon { width: 26px; height: 26px; }

  /* Final CTA */
  .cta-card { padding: 32px 20px; border-radius: 12px; }

  /* Footer */
  .back-to-top { width: 38px; height: 38px; bottom: 20px; right: 20px; }
}

/* Small mobile */
@media (max-width: 400px) {
  .outcome-intro h2 { font-size: 24px; }
  .plan__price .amount { font-size: 32px; }
  .cta-card { padding: 28px 16px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
