/* ============================================================
 * style.css — SocialGenieAI landing page
 * Base styles + components. (Utility classes live in utilities.css)
 *
 * Palette
 *   navy    #16244a   pink   #ec1e79   purple  #7b2ff7
 *   green   #15b886   muted  #6b7280   gradient purple -> pink
 * ============================================================ */

/* ---------- Fonts ---------- */
.k2d { font-family: "K2D", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1E1E1E;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* contain the robot's slight right overhang */
}

h1, h2, h3, h4, h5, h6 {
  color: #132957;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p   { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }

/* ---------- Color helpers ---------- */
.text-navy   { color: #132957 !important; }
.text-pink   { color: #ec1e79 !important; }
.text-muted-c{ color: #6b7280 !important; }

/* ---------- Layout ---------- */
/* Fluid, centered container — wider than Bootstrap's .container (max 1320px).
   Scales full-width with responsive side gutters, capped at 1480px. */
.mycontainer {
  width: 100%;
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 44px);
  padding-right: clamp(16px, 3vw, 44px);
}

/* Wider container for content-heavy sections (e.g. steps + video).
   Same fluid behaviour as .mycontainer, capped at 1760px on large screens. */
.mycontainer-xl {
  width: 100%;
  max-width: 1760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 44px);
  padding-right: clamp(16px, 3vw, 44px);
}

/* ---------- Top announcement bar ---------- */
.topbar {
  background: linear-gradient(95deg, #7b2ff7 0%, #ec1e79 100%);
  color: #ffffff;
  text-align: center;
  padding: 12px 16px;
  font-weight: 600;
}

/* ---------- Top / headline area background ---------- */
.header-area {
  background-image: url("../images/header_bg_images.webp");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

/* ---------- Logo ---------- */
.site-logo { display: block; margin: 0 auto; width: clamp(150px, 18vw, 200px); height: auto; }

/* ---------- Pills (feature / trust) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: clamp(5px, 1.3vw, 12px);
  border-radius: 22px;
  padding: clamp(8px, 1.6vw, 14px) clamp(10px, 2.3vw, 26px);
  font-weight: 600;
  font-size: clamp(9px, 2.5vw, 16px);   /* shrinks on small screens so 3 fit in a row */
  white-space: nowrap;                  /* keep each pill's label on one line */
  color: #16244a;
  background: rgba(255, 67, 183, 0.06);
  border: 1px solid rgba(255, 67, 183, 0.2);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.06);
}
.pill img { width: 1.35em; height: auto; flex: 0 0 auto; }
.pill--pink { background: #fde9f2; }

/* ---------- Eyebrow badges ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-pill--purple {
  background: linear-gradient(270.06deg, #FF43B7 -8.69%, #A142FF 50.39%, #5A2DFF 109.47%);
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  color: #ffffff;
  padding: 10px 22px;
}

/* Solid pink call-out pill under the headline */
.callout-pill {
  display: inline-block;
  color: #ffffff;
  padding: clamp(10px, 1.6vw, 16px) clamp(14px, 3vw, 34px);
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 18px);   /* shrinks on mobile to stay one line */
  white-space: nowrap;
  background: linear-gradient(179.48deg, #FF43B7 -1.76%, #B71077 282.69%);
  box-shadow: inset 0px -4px 9px #BC167D;
  border-radius: 20px;
}

/* ---------- Steps + video section (curved gradient backdrop) ---------- */
.steps-section {
  position: relative;
  padding-top: clamp(20px, 5vw, 50px);   /* less space above the badge on mobile */
  background: linear-gradient(183.21deg, #FFF4FB 16.2%, #FFFFFF 85.23%);
}
/* Concave top edge: a page-coloured "dip" that bulges down into the pink. */
.steps-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1%;
  right: -1%;
  height: 52px;
  background: #ffffff;
  border-bottom-left-radius: 50% 52px;
  border-bottom-right-radius: 50% 52px;
  pointer-events: none;
}
.steps-section > .mycontainer-xl { position: relative; z-index: 1; }

/* ---------- Steps ---------- */
.stepper { position: relative; padding-left: 30px; }
/* Gradient "tree" line — purple up by the badge, pink at the dot, fading out. */
.stepper::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -28px;        /* reaches up toward the badge */
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #a142ff 0%, #ff43b7 30%, rgba(255, 67, 183, 0.04) 100%);
}
.step { position: relative; margin-bottom: 18px; }
.step:last-child { margin-bottom: 0; }
/* A single dot, on the first step, centered on the line, with a soft halo. */
.step:first-child::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 84px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff43b7;
  box-shadow: 0 0 0 6px rgba(255, 67, 183, 0.16);
}
.step-card {
  background: linear-gradient(180deg, #ffffff 0%, #fdf4fa 100%);
  border: 1px solid #f1e4ee;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(22, 36, 74, 0.06);
}
/* First card highlighted with a gradient border. */
.step:first-child .step-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fdf6fb 100%) padding-box,
    linear-gradient(135deg, #a142ff 0%, #ff43b7 100%) border-box;
  border: 1.5px solid transparent;
}

/* Step icon image — asset has its colored background baked in; clip to a circle */
.step-img {
  width: 3em;
  height: auto;
  display: block;
  margin-bottom: 14px;
  border-radius: 50%;
}

/* Desktop: the track is a passthrough; steps stack vertically. */
.stepper-track { display: block; }

/* Mobile / tablet: horizontal, scrollable timeline.
   The line + start node live on .stepper (fixed); only .stepper-track scrolls. */
@media (max-width: 991.98px) {
  /* Center the "Three Easy Steps" badge */
  .badge-pill { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

  .stepper { padding-left: 0; padding-top: 44px; }

  /* Horizontal gradient line across the top */
  .stepper::before {
    top: 17px;
    left: 10px;
    right: 0;
    bottom: auto;
    width: auto;
    height: 3px;
    background: linear-gradient(90deg, #a142ff 0%, #ff43b7 24%, rgba(255, 67, 183, 0.05) 100%);
  }
  /* Ring node at the start of the line */
  .stepper::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 10px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #ff43b7;
    box-shadow: 0 0 0 4px rgba(255, 67, 183, 0.14);
  }
  .step:first-child::before { display: none; }   /* hide the vertical dot */

  .stepper-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* 3 cards side by side */
    gap: 12px;
  }
  .step { margin-bottom: 0; }
  .step-card { height: 100%; padding: 12px 11px; }   /* equal height, tighter on mobile */
}

/* ---------- Platform / calendar section ---------- */
/* Soft lavender backdrop with a concave top edge: a page-coloured "dip"
   that bulges down into the lavender (same trick as .steps-section). */
.platform-section {
  position: relative;
  background: linear-gradient(183.21deg, #F6ECFF 16.2%, rgba(255, 255, 255, 0) 85.23%);
  padding-top: clamp(40px, 6vw, 80px);
}
.platform-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1%;
  right: -1%;
  height: 60px;
  background: #ffffff;
  border-bottom-left-radius: 50% 60px;
  border-bottom-right-radius: 50% 60px;
  pointer-events: none;
}
.platform-section > .mycontainer-xl { position: relative; z-index: 1; }

/* Calendar composite already carries its own torn-edge shadow — used as-is. */
.platform-img { width: 100%; height: auto; }

/* ---------- Demo / features section (dark) ---------- */
/* Deep-purple gradient base with a faint, transparent social-icons pattern
   layered on top (image listed first sits above the gradient). */
.demo-section {
  background:
    url("../images/demo_icons_bg.webp") top center / 100% auto no-repeat,
    linear-gradient(0deg, #0B022D 0%, #1A0B5B 50%, #3B0F8C 100%);
}

/* Inward-pointing arrows flanking the intro badge (nudged down a bit). */
.demo-arrow { width: clamp(34px, 6vw, 60px); height: auto; position: relative; top: clamp(10px, 1.8vw, 22px); }

/* Gradient "Introducing" pill (title-case, rounded). */
.demo-badge {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  padding: clamp(8px, 1.4vw, 14px) clamp(16px, 2.6vw, 30px);
  background: linear-gradient(90deg, #A142FF 0%, #FF43B7 100%);
  box-shadow: 0 8px 26px rgba(161, 66, 255, 0.45);
  border-radius: 999px;
  white-space: nowrap;
}

/* Translucent feature cards on the dark backdrop. */
.demo-card {
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%),
    rgba(123, 47, 247, 0.10);
  border: 1px solid rgba(160, 120, 255, 0.22);
  border-radius: 18px;
  padding: clamp(18px, 2vw, 26px);
}
.demo-card p { color: #b9abdd; }
.demo-card-icon { width: 2.6em; height: auto; margin-bottom: 14px; }

/* ---------- Video mockup ---------- */
.video-wrap { position: relative; }
.video-frame {
  background: linear-gradient(160deg, #7b2ff7 0%, #b13bd6 100%);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 26px 60px rgba(123, 47, 247, 0.28);
}
.video-bar { display: flex; gap: 7px; padding: 4px 6px 12px; }
.video-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.video-screen {
  position: relative;
  background: #5b5b66;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.video-screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-robot {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 90%;
  width: auto;
  z-index: 2;
  pointer-events: none;
}

/* ---------- Features timeline ---------- */
/* Solid pink eyebrow pill. */
.ft-pill {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  background: #ec1e79;
  padding: clamp(9px, 1.5vw, 14px) clamp(18px, 3vw, 34px);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(236, 30, 121, 0.30);
}

/* The timeline: a single vertical line down the centre, with numbered
   circular nodes sitting on it and content alternating left / right. */
.ft-timeline { position: relative; }
.ft-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, #a142ff 0%, #7c3aed 100%);
}

.ft-item { position: relative; }
.ft-item + .ft-item { margin-top: clamp(34px, 5vw, 64px); }

.ft-title { text-transform: uppercase; }
.ft-img { width: 100%; height: auto; display: block; border-radius: 18px; overflow: hidden; }

/* Numbered node — centred on the line; the white ring masks the line behind it. */
.ft-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 3.6vw, 54px);
  height: clamp(42px, 3.6vw, 54px);
  border-radius: 50%;
  background: linear-gradient(180deg, #9333ea 0%, #7c3aed 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 16px);
  box-shadow: 0 0 0 6px #ffffff, 0 0 0 8px rgba(124, 58, 237, 0.18);
}

/* Desktop: keep text + media clear of the centre rail (clearance flips on
   reversed rows so the side facing the centre always has the breathing room). */
@media (min-width: 992px) {
  .ft-timeline .row > .ft-text  { padding-right: 6%; }
  .ft-timeline .row > .ft-media { padding-left: 6%; }
  .ft-timeline .row.flex-lg-row-reverse > .ft-text  { padding-right: 0; padding-left: 6%; }
  .ft-timeline .row.flex-lg-row-reverse > .ft-media { padding-left: 0; padding-right: 6%; }

  /* Keep the copy from spanning the full half-column (airy whitespace).
     Padding stays inside the col, so the 50/50 grid + centre rail don't move. */
  .ft-timeline .row > .ft-text.ft-text-narrow { padding-right: 14%; }
  /* Reversed rows: text still hugs the centre rail (keeps the 44px clearance),
     the airy whitespace goes on the outer side. */
  .ft-timeline .row.flex-lg-row-reverse > .ft-text.ft-text-narrow { padding-right: 10%; }
}

/* Mobile / tablet: the line moves to the left, nodes sit on it near the top
   of each item, and the stacked content clears the rail. */
@media (max-width: 991.98px) {
  .ft-timeline::before { left: 21px; transform: none; }
  .ft-item { padding-left: 56px; }
  .ft-node { left: 21px; top: 4px; transform: translateX(-50%); }
}

/* ---------- "More features" bento (each image is a full card) ---------- */
/* Faint decorative phone mockups behind the section header. */
.more-feat-section {
  background: url("../images/more_feat_bg.webp") top center / 100% auto no-repeat;
}
.mf-img { width: 100%; height: auto; }
/* Right column: the two cards stacked with a gap. */
.mf-right { display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 24px); }

/* Desktop: the left image keeps its natural aspect (no crop) and drives the
   row height; the right stack fills that height and spreads the two cards out,
   so any extra room shows as vertical space between them rather than cropping. */
@media (min-width: 992px) {
  .mf-right { height: 100%; justify-content: space-between; }
}

/* ---------- Media strips (payment / OS) ---------- */
/* Use with Bootstrap's .img-fluid (max-width:100%; height:auto).
   width:100% keeps them fluid; max-width caps them on large screens. */
.payment-strip { width: 100%; max-width: 300px; }
.os-strip      { width: 100%; max-width: 400px; }

/* ---------- Footer ---------- */
.footer-section {
  background: url("../images/footer_bg.webp") top center / 100% 100% no-repeat, #ffffff;
}
.footer-logo { width: clamp(150px, 18vw, 210px); height: auto; }

.footer-panel {
  background: linear-gradient(180deg, #FBEAF5 0%, #F3ECFF 100%);
  border: 1px solid #f0dcec;
  border-radius: 28px;
  padding: clamp(24px, 3vw, 44px);
}
/* Gradient address pill with a white circle holding the pin. */
.footer-addr {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
  color: #ffffff;
  background: linear-gradient(270deg, #FF43B7 0%, #A142FF 100%);
  border-radius: 999px;
  padding: clamp(8px, 1vw, 10px) clamp(20px, 2.5vw, 32px) clamp(8px, 1vw, 10px) clamp(8px, 1vw, 10px);
}
.footer-addr-pin {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 4vw, 52px);
  height: clamp(38px, 4vw, 52px);
  background: #ffffff;
  border-radius: 50%;
}
.footer-addr-pin img { width: 55%; height: auto; }

.footer-links a { color: #132957; text-decoration: none; }
.footer-links a:hover { color: #ec1e79; }
.footer-api { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-yt-logo { height: 110px; width: auto; margin: -16px 0; } /* PNG includes required clear space */
.footer-api a { color: #132957; text-decoration: underline; }
.footer-api a:hover { color: #ec1e79; }

/* ---------- FAQ section ---------- */
.faq-section {
  background: url("../images/faq_bg.webp") top center / 100% 100% no-repeat, #1a0b5b;
}
.faq-list { max-width: 940px; margin-left: auto; margin-right: auto; }

/* Accordion item — button toggles an .is-open class (see main.js); the answer
   height is animated with the grid-template-rows 0fr <-> 1fr technique. */
.faq-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(15px, 2vw, 22px) clamp(18px, 2.5vw, 28px);
  color: #ffffff;
  font-weight: 600;
}
.faq-chevron { flex: 0 0 auto; width: 1.1em; height: 1.1em; transition: transform 0.25s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a { overflow: hidden; }   /* clipped while the row collapses */
.faq-a-body {
  margin: 0;
  padding: 2px clamp(18px, 2.5vw, 28px) clamp(16px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Pricing recap cards ---------- */
.price-card {
  position: relative;
  height: 100%;
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 26px;
  padding: clamp(22px, 3vw, 40px);
  box-shadow: 0 20px 50px rgba(22, 36, 74, 0.08);
  overflow: hidden;
}
.price-card--all {
  border: 2px solid #a142ff;
  box-shadow: 0 26px 60px rgba(161, 66, 255, 0.25);
}
/* Corner ribbon badge. */
.price-badge {
  position: absolute;
  top: 0;
  right: 0;
  color: #ffffff;
  padding: clamp(10px, 1.4vw, 15px) clamp(20px, 3vw, 38px);
  border-bottom-left-radius: 20px;
}
.price-badge--basic { background: #132957; }
.price-badge--all   { background: linear-gradient(90deg, #A142FF 0%, #7b2ff7 100%); }

.price-logo { width: clamp(150px, 17vw, 196px); height: auto; }

/* Negative side margin = card padding, so the striped rows reach the card edges;
   the same padding goes back on each row to keep the text aligned. */
.price-list { list-style: none; margin: 0 calc(-1 * clamp(22px, 3vw, 40px)); padding: 0; }
.price-list li { display: flex; align-items: flex-start; gap: 20px; padding: 10px clamp(22px, 3vw, 40px); }
.price-list li:nth-child(even) { background: #fdf2f8; }

/* Row bullet icon, drawn via a pseudo-element (no <img> per row). */
.price-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 1.3em;
  height: 1.3em;
  margin-top: 0.15em;   /* center the icon on the first line, not the whole block */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.price-list--check li::before { background-image: url("../images/check.webp"); }
.price-list--crown li::before { background-image: url("../images/crown.webp"); }

.price-mini-pill {
  display: inline-block;
  background: #fdecf5;
  color: #8a1d57;
  border-radius: 999px;
  padding: clamp(8px, 1.2vw, 12px) clamp(16px, 2.4vw, 26px);
}
/* Keep the CTA label on one line inside the half-width card. */
.price-card .btn-cta { font-size: clamp(13px, 1.4vw, 19px); width: 100%; justify-content: center; }

/* ---------- Comparison / pricing section ---------- */
/* Background image carries the gradient, curved top and floating icons. */
.compare-section {
  background: url("../images/compare_bg.webp") top center / 100% 100% no-repeat;
  padding-top: clamp(54px, 8vw, 110px);
}



/* Translucent eyebrow pill on the purple. */
.compare-eyebrow {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: clamp(8px, 1.4vw, 12px) clamp(16px, 2.6vw, 28px);
  white-space: nowrap;
}

/* Two comparison cards; the light one pops above + overlaps the dark one. */
.cmp-wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.cmp-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  text-align: left;
}
.cmp-card--dark  { background: #0e1430; color: #e7e9f5; }
.cmp-card--light { background: #ffffff; color: #2b2f45; }

.cmp-head { padding: 22px 20px; text-align: center; }
.cmp-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff5b5b 0%, #e23b3b 100%);
  margin-bottom: 10px;
}
.cmp-x svg { width: 18px; height: 18px; stroke: #ffffff; }
.cmp-logo { width: clamp(120px, 14vw, 158px); height: auto; }

.cmp-list { list-style: none; margin: 0; padding: 0; }
.cmp-list li { display: flex; align-items: center; gap: 10px; padding: 11px 35px; }
.cmp-card--dark  .cmp-list li:nth-child(odd)  { background: rgba(255, 255, 255, 0.04); }
.cmp-card--light .cmp-list li:nth-child(even) { background: #fdf2f8; }
.cmp-ico { width: 1.25em; height: auto; flex: 0 0 auto; }

.cmp-foot { padding: 18px 22px 24px; margin-top: auto; }
.cmp-price { display: table; margin: auto; border-radius: 24px; padding: 14px 50px; text-align: center; color: #ffffff; }
.cmp-price--bad {
  background: linear-gradient(92.24deg, #ED0000 -30.77%, #DF5819 107.65%);
  box-shadow: 0px 4px 30px rgba(237, 0, 0, 0.2);
}
.cmp-price--good {
  background: linear-gradient(144.91deg, #A142FF -7.26%, #132957 95.17%);
  box-shadow: 0px 4px 30px rgba(161, 66, 255, 0.6);
}

@media (min-width: 768px) {
  /* Taller (pops above/below) + overlaps the dark card on its left edge. */
  .cmp-card--light { margin-top: -22px; margin-bottom: -22px; margin-left: -28px;
                     position: relative; z-index: 2;
                     box-shadow: 15px 15px 4px #3B0F8C;}
}
@media (max-width: 767.98px) {
  .cmp-wrap { flex-direction: column; gap: 18px; max-width: 420px; }
}

/* Brush highlight behind a word, and the underline stroke. */
.hl-brush {
  background: url("../images/brush.webp") center / 100% 100% no-repeat;
  padding: 0.05em 0.45em;
}
.hl-underline {
  background: url("../images/underline.webp") bottom center / 100% auto no-repeat;
  padding-bottom: 0.35em;
}

/* ---------- "Act fast" deal section ---------- */
/* Background image carries the dark gradient, curved top and pattern. */
.act-fast-section {
  background:
    url("../images/act_fast_bg.webp") top center / 100% 100% no-repeat,
    linear-gradient(0deg, #0B022D 0%, #1A0B5B 50%, #3B0F8C 100%);
  padding-top: clamp(40px, 6vw, 80px);
}
.act-fast-img { width: 100%; height: auto; }

/* ---------- Profit / use-cases marquee ---------- */
.profit-section {
  /* Image pinned to the bottom at natural width-aspect so its curved floor keeps
     its real arc. The opaque floor fills the section; the only transparent area
     is BELOW the curve, where the deep-purple base shows through and blends into
     the dark act-fast section that follows. */
  background:
    url("../images/profit_bg.webp") bottom center / 100% auto no-repeat,
    ;
  overflow: hidden;   /* clip the scrolling tracks */
  padding-bottom: clamp(60px, 10vw, 150px);
}
/* At narrow widths the floor image can't fill the whole height, so keep the
   uncovered area light instead of purple. */
@media (max-width: 991.98px) {
  .profit-section {
    background:
      url("../images/profit_bg.webp") bottom center / 100% auto no-repeat,
      linear-gradient(180deg, #ffffff 0%, #f6f1fd 100%);
  }
}

/* A horizontally scrolling, seamless track. The card set is duplicated in the
   HTML, so translating by -50% loops perfectly. */
.marquee { overflow: hidden; width: 100%; }
.marquee + .marquee { margin-top: clamp(16px, 1.6vw, 24px); }
.marquee-track { display: flex; gap: clamp(16px, 1.6vw, 24px); width: max-content; }
.marquee-track--left  { animation: marquee-left 48s linear infinite; }
.marquee-track--right { animation: marquee-right 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Cards: fixed width so the track has a stable length. */
.profit-card {
  flex: 0 0 auto;
  width: clamp(228px, 24vw, 286px);
  border-radius: 36px;
  padding: clamp(18px, 2vw, 28px);
  text-align: center;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.06);
}
.profit-card img { width: clamp(120px, 13vw, 168px); height: auto; }
.marquee--a .profit-card {
  background: linear-gradient(306.45deg, #FFE2F5 -1.34%, #FFFFFF 127.29%);
  border: 2px solid rgba(255, 67, 183, 0.2);
}
.marquee--b .profit-card {
  background: linear-gradient(312.26deg, #EFDFFF 0.84%, #FFFFFF 129.49%);
  border: 2px solid rgba(161, 66, 255, 0.2);
}


.recap-section {
  padding-top: 5%;
  padding-bottom: 15%;
}


/* ---------- CTA button ---------- */
.btn-cta {
  position: relative;
  overflow: hidden;                      /* clip the shine sweep to the pill */
  isolation: isolate;                    /* keep the shine above the bg, below text */
  display: inline-flex;
  align-items: center;
  gap: clamp(7px, 1vw, 12px);
  background: linear-gradient(270.06deg, #FF43B7 -8.69%, #A142FF 50.39%, #5A2DFF 109.47%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.5), 0 10px 24px rgba(123, 47, 247, 0.28);
  border-radius: 38px;
  color: #ffffff;
  border: none;
  padding: clamp(12px, 1.5vw, 20px) clamp(16px, 3vw, 44px);
  font-weight: 700;
  font-size: clamp(14px, 3.6vw, 30px);   /* shrinks on mobile to stay one line */
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.28s ease,
              background-position 0.5s ease;
}
/* Diagonal light sweep that glides across on hover. */
.btn-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 55%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.38) 50%, transparent 100%);
  transform: translateX(-180%) skewX(-18deg);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: -1;   /* above the gradient, below the label */
}
.btn-cta:hover {
  color: #ffffff;
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.65),
              0 18px 40px rgba(236, 30, 121, 0.35),
              0 6px 16px rgba(90, 45, 255, 0.3);
}
.btn-cta:hover::before { transform: translateX(230%) skewX(-18deg); }
.btn-cta:active { transform: translateY(-1px); }

/* Dark navy variant (comparison section CTA). */
.btn-cta--dark { background: linear-gradient(145deg, #3a3f7d 0%, #161a3f 100%); box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.12), 0 14px 32px rgba(8, 6, 32, 0.4); }
.btn-cta--dark:hover { box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.18), 0 20px 46px rgba(8, 6, 32, 0.55); }

.btn-cta svg { width: 0.8em; height: 0.8em; transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
.btn-cta:hover svg { transform: translateX(4px); }   /* arrow nudges forward */

/* Respect reduced-motion: keep it calm. */
@media (prefers-reduced-motion: reduce) {
  .btn-cta, .btn-cta svg { transition: box-shadow 0.2s ease; }
  .btn-cta:hover { transform: none; }
  .btn-cta::before { display: none; }
}

/* Full-width CTA on phones */
@media (max-width: 575.98px) {
  .btn-cta { display: flex; width: 100%; justify-content: center; }
}


/* ---------- Responsive ---------- */
/* On desktop, leave room on the right of the steps video for the robot. */
@media (min-width: 1200px) { .steps-section .video-frame { max-width: 85%; } }
@media (max-width: 1199.98px) { .video-robot { display: none; } }   /* hidden on mobile + tablet */
@media (min-width: 1200px)  { .video-robot { right: -218px; } }
@media (min-width: 1800px) { .video-robot { right: -268px; } }
@media (min-width: 2100px) { .video-robot { right: -268px; } }


