/* =============================================================================
   ultra.css — shared design system for the six feature pages
   (/carousels, /video-studio, /conv-ads, /comp-data, /product-bgs, /websites)

   One dark hero panel per page is the only place that shouts; everything below
   it stays light, quiet and factual. Bands alternate white / #f8fafc.
   ============================================================================= */

:root {
  --ink: #0f172a;
  --muted: #55617a;
  --line: #ece7fa;
  --violet: #7c3aed;
  --violet-2: #6366f1;
  --band: #fbfaff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Heebo", "Assistant", sans-serif;
}

/* The accessibility widget parks its launcher off-canvas to the left; in an RTL
   document that alone is enough to create a horizontal scrollbar, so the clip
   has to sit on <html> as well as on <body>. */
html {
  overflow-x: hidden;
}

body {
  background: #fff;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- hero ---------------------------------------------------------- */
.u-hero {
  padding: 116px 24px 0;
  max-width: 1180px;
  margin: 0 auto;
}

.u-hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid #ece7fa;
  background:
    radial-gradient(80% 60% at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(70% 60% at 10% 0%, rgba(236, 72, 153, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  padding: 62px 48px 54px;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(76, 29, 149, 0.08);
}

.u-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(124, 58, 237, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}

.u-hero-inner {
  position: relative;
  z-index: 1;
}

.u-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #5b21b6;
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(139, 92, 246, 0.22);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.u-h1 {
  font-size: clamp(1.9rem, 5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.u-grad {
  background: linear-gradient(90deg, #7c3aed, #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.u-sub {
  font-size: clamp(1rem, 2.1vw, 1.16rem);
  line-height: 1.8;
  color: #55617a;
  max-width: 690px;
  margin: 0 auto 30px;
}

.u-cta {
  display: inline-block;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 14px;
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.42);
  font-family: inherit;
}

.u-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(124, 58, 237, 0.56);
}

.u-note {
  font-size: 0.85rem;
  color: #8b94a7;
  margin-top: 15px;
}

.u-hero-art {
  margin: 36px auto 0;
  max-width: 780px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #ece7fa;
  box-shadow: 0 34px 80px rgba(76, 29, 149, 0.16);
}

/* ---------- stat strip ---------------------------------------------------- */
.u-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: -34px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.u-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.u-stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--violet);
  line-height: 1.1;
  margin-bottom: 5px;
}

.u-stat span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- sections ------------------------------------------------------ */
.u-band {
  padding: 76px 0;
}

.u-band.alt {
  background: var(--band);
}

.u-band-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.u-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--violet);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.u-h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.u-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

/* feature row: text + art, alternating */
.u-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

.u-row + .u-row {
  margin-top: 72px;
}

.u-row.flip .u-row-art {
  order: -1;
}

.u-row-art img,
.u-row-art .u-art-box {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  width: 100%;
}

/* safety net: no single illustration may tower over its own paragraph */
.u-row-art > img {
  max-height: 460px;
  object-fit: cover;
}

/* 4:5 social slides keep their whole design visible, just narrower */
.u-portrait {
  max-width: 296px;
  margin: 0 auto;
}

.u-portrait img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  width: 100%;
}

.u-row h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}

.u-row p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.u-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.u-list li {
  position: relative;
  padding-inline-start: 30px;
  font-size: 0.97rem;
  line-height: 1.6;
  color: #334155;
}

.u-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ede9fe;
  color: var(--violet);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- gallery ------------------------------------------------------- */
.u-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

.u-gal-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.u-gal-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.u-gal-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.u-gal-cap {
  padding: 12px 14px 14px;
}

.u-gal-cap b {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.u-gal-cap span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- steps --------------------------------------------------------- */
/* ---------- notes: text-only grid ----------------------------------------
   For substance that does not want an illustration. `.u-row` needs artwork on
   both halves or it renders a blank column, so anything text-first goes here. */
.u-notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.u-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 24px;
}

.u-note h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 9px;
  line-height: 1.4;
}

.u-note p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--muted);
}

.u-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.u-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
}

.u-step b {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.u-step h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.u-step p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- faq ----------------------------------------------------------- */
.u-faq {
  max-width: 780px;
  margin: 0 auto;
}

.u-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.u-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.u-faq summary::-webkit-details-marker {
  display: none;
}

.u-faq summary::after {
  content: "+";
  margin-inline-start: auto;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--violet);
  transition: transform 0.25s ease;
}

.u-faq details[open] summary::after {
  transform: rotate(45deg);
}

.u-faq .u-faq-a {
  padding: 0 20px 18px;
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- closing ------------------------------------------------------- */
.u-final {
  padding: 20px 24px 90px;
  max-width: 1180px;
  margin: 0 auto;
}

.u-final-panel {
  border-radius: 30px;
  border: 1px solid #ece7fa;
  background:
    radial-gradient(80% 70% at 15% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(70% 60% at 90% 10%, rgba(236, 72, 153, 0.10), transparent 60%),
    linear-gradient(180deg, #fbf9ff 0%, #ffffff 100%);
  padding: 58px 40px;
  text-align: center;
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(76, 29, 149, 0.08);
}

.u-final-panel h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}

.u-final-panel p {
  font-size: 1.03rem;
  color: #55617a;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* cross-links to the other feature pages */
.u-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}

.u-more a {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.u-more a:hover {
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-2px);
}

/* The guide link goes to the blog rather than to another product page, so it
   reads as a different kind of destination instead of hiding among the six. */
.u-more a.u-more-guide {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.24);
  color: #5b21b6;
}

.u-more a.u-more-guide:hover {
  background: #fff;
  border-color: var(--violet);
}

/* ---------- mobile -------------------------------------------------------- */
@media (max-width: 860px) {
  .u-row,
  .u-steps,
  .u-notes {
    grid-template-columns: 1fr;
  }

  .u-row {
    gap: 28px;
  }

  .u-row + .u-row {
    margin-top: 52px;
  }

  /* art first on phones: the picture explains faster than the paragraph */
  .u-row .u-row-art {
    order: -1;
  }

  .u-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .u-hero {
    padding: 92px 16px 0;
  }

  .u-hero-panel {
    border-radius: 22px;
    padding: 38px 20px 34px;
  }

  .u-cta {
    width: 100%;
    padding: 15px 20px;
  }

  .wrap {
    padding: 0 18px;
  }

  .u-band {
    padding: 56px 0;
  }

  .u-band-head {
    margin-bottom: 34px;
  }

  .u-final {
    padding: 10px 16px calc(64px + env(safe-area-inset-bottom));
  }

  .u-final-panel {
    border-radius: 22px;
    padding: 40px 22px;
  }

  .u-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
