/* ============================================================
   SeeThru — LED Video Walls suite (stx-led-walls)
   Ported from the "LED Video Walls by SeeThru Displays" design.
   Everything is scoped under .stxlw so it never leaks into the
   Rey theme. Each widget renders its own .stxlw wrapper.
   ============================================================ */

/* Rey wraps the whole page in #page.rey-siteWrapper { overflow: hidden },
   which turns that wrapper into a scroll container and silently kills
   position:sticky for the Use Cases intro column on the live frontend. The
   Elementor editor preview has no .rey-siteWrapper, so it works there — hence
   "sticky in the editor, not on live". Rey exposes this as a CSS variable for
   exactly this override: switch hidden -> clip. clip still clips stray
   horizontal overflow but does NOT establish a scroll container, so sticky
   works again. Scoped to pages that load this suite (conditional enqueue). */
.rey-siteWrapper { --site-wrapper-overflow: clip; }

.stxlw {
  --ink: #0a0118;
  --ink-2: #120822;
  --ink-3: #1a0f2e;
  --panel: #2b2338;
  --panel-2: #262030;
  --panel-input: #463863;
  --brand-purple: #b47cfd;
  --brand-pink: #ff7fc2;
  --brand-orange: #ffb07b;
  --blue: #1f4ed8;
  --blue-2: #3b6ef6;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --line: rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.08);
  --ink-100: #fafafa;
  --ink-300: #e0e0e0;
  --ink-400: #b8b2c4;
  --stxlw-maxw: 1280px;
  --gutter: clamp(20px, 5vw, 60px);
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", -apple-system, system-ui, sans-serif;
  --radius: 18px;
  --grad-brand: linear-gradient(150deg, #b47cfd 18%, #ff7fc2 78%);
  --grad-blue: linear-gradient(180deg, #1f4ed8 0%, #3b6ef6 100%);
  --ease: cubic-bezier(.22,.61,.36,1);

  font-family: var(--body);
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Contain any sub-pixel/scale overflow without creating a scroll container
     (clip keeps the sticky use-cases column working). */
  overflow-x: clip;
  max-width: 100%;
}

.stxlw *, .stxlw *::before, .stxlw *::after { box-sizing: border-box; min-width: 0; }
.stxlw img, .stxlw video { display: block; max-width: 100%; }
.stxlw a { color: inherit; text-decoration: none; }
.stxlw h1, .stxlw h2, .stxlw h3, .stxlw h4 {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0;
}
.stxlw p { margin: 0; }
.stxlw ::selection { background: var(--brand-pink); color: #fff; }

.stxlw .wrap { max-width: var(--stxlw-maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ============ BUTTONS ============ */
.stxlw .btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer; font-family: var(--display); font-weight: 700;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 999px; color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease);
  white-space: nowrap;
}
.stxlw .btn svg { width: 15px; height: 15px; flex: none; }
.stxlw .btn-brand {
  background: var(--grad-brand);
  box-shadow: inset -25px 0 26px -14px var(--brand-orange), 0 10px 30px -8px rgba(180,124,253,.5);
}
.stxlw .btn-brand:hover { transform: translateY(-2px); box-shadow: inset -25px 0 26px -14px var(--brand-orange), 0 16px 40px -8px rgba(255,127,194,.6); }
.stxlw .btn-blue {
  background: var(--grad-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.1), 0 10px 34px -6px rgba(31,78,216,.55);
}
.stxlw .btn-blue:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.15), 0 18px 46px -6px rgba(31,78,216,.7); }
.stxlw .btn-white { background: #fff; color: #0a0118; box-shadow: 0 8px 26px -10px rgba(0,0,0,.5); border-radius: 4px; letter-spacing: 0.08em; }
.stxlw .btn-white:hover { transform: translateY(-2px); }
.stxlw .btn-lg { padding: 17px 34px; font-size: 14px; }

/* ============ SECTION SHELL ============ */
.stxlw section { position: relative; }
.stxlw .sec { padding-block: clamp(64px, 9vw, 120px); }
.stxlw .sec-head { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: clamp(40px, 5vw, 64px); }
.stxlw .sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; }
.stxlw .sec-head h2 .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stxlw .sec-head p { margin-top: 16px; font-size: clamp(15px, 1.5vw, 19px); color: var(--ink-400); }
.stxlw .eyebrow { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brand-pink); margin-bottom: 14px; display: block; }

/* reveal — opt-in, only after JS marks the root .is-reveal */
.stxlw.is-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stxlw.is-reveal .reveal.in { opacity: 1; transform: none; }

/* ============ HERO ============ */
.stxlw--hero .hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.stxlw--hero .hero__bg { position: absolute; inset: 0; z-index: 0; background: #0a0118; }
.stxlw--hero .hero__poster,
.stxlw--hero .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stxlw--hero .hero__poster { transform: scale(1.03); z-index: 0; }
/* Video sits over the poster and fades in once it is actually playing. */
.stxlw--hero .hero__video { z-index: 1; opacity: 0; transition: opacity .8s var(--ease); }
.stxlw--hero .hero__video.is-playing { opacity: 1; }
.stxlw--hero .hero__bg::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,1,24,.55) 0%, rgba(10,1,24,.12) 32%, rgba(10,1,24,.18) 60%, rgba(10,1,24,.92) 100%);
}
.stxlw--hero .hero__inner { position: relative; z-index: 2; width: 100%; padding-block: 70px; }
.stxlw--hero .hero h1 {
  font-size: clamp(38px, 6vw, 62px); max-width: 17ch; color: #fff;
  text-shadow: 0 2px 22px rgba(0,0,0,.6);
}
.stxlw--hero .hero__sub { margin-top: 20px; max-width: 62ch; font-size: clamp(15px, 1.4vw, 17px); color: rgba(255,255,255,.9); line-height: 1.55; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.stxlw--hero .hero__sub b { font-weight: 600; }
.stxlw--hero .hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.stxlw--hero .hero__link { font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.stxlw--hero .hero__link:hover { gap: 11px; }

/* ============ PRICING SELECTOR ============ */
.stxlw--pricing { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); display: block; }
.stxlw--pricing .calc-card {
  background: #fff; border-radius: 26px; padding: clamp(26px, 4vw, 52px);
  max-width: 1180px; margin-inline: auto; color: var(--slate-900);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.6);
}
.stxlw--pricing .calc-progress { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-bottom: 30px; }
.stxlw--pricing .calc-progress > i { display: block; height: 100%; width: 30%; border-radius: 999px; background: var(--grad-blue); transition: width .5s var(--ease); }
.stxlw--pricing .calc-card h3 { font-size: clamp(24px, 3vw, 32px); color: var(--slate-900); letter-spacing: -0.02em; }
.stxlw--pricing .calc-card .lede { margin-top: 8px; color: var(--slate-600); font-size: 15px; }
.stxlw--pricing .loc-grid { margin-top: 28px; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.stxlw--pricing .loc {
  position: relative; text-align: left; cursor: pointer; border: 1.5px solid #e6e8ee; background: #fff;
  border-radius: 16px; overflow: hidden; padding: 0; font: inherit; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.stxlw--pricing .loc:hover { border-color: #c9b7fc; box-shadow: 0 12px 28px -14px rgba(124,77,255,.5); transform: translateY(-3px); }
.stxlw--pricing .loc.sel { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,78,216,.16), 0 16px 30px -16px rgba(31,78,216,.5); }
.stxlw--pricing .loc__img { aspect-ratio: 16/10; overflow: hidden; background: #eef1f6; }
.stxlw--pricing .loc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.stxlw--pricing .loc:hover .loc__img img { transform: scale(1.06); }
.stxlw--pricing .loc__body { padding: 13px 15px 16px; }
.stxlw--pricing .loc__body h4 { font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--slate-900); letter-spacing: 0; }
.stxlw--pricing .loc__body span { font-size: 13px; color: var(--slate-400); }
.stxlw--pricing .loc__check {
  position: absolute; top: 11px; right: 11px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: .2s;
}
.stxlw--pricing .loc.sel .loc__check { opacity: 1; transform: none; }
.stxlw--pricing .loc__check svg { width: 13px; height: 13px; stroke: #fff; }
.stxlw--pricing .calc-foot { margin-top: 26px; display: flex; justify-content: flex-end; }
.stxlw--pricing .calc-continue { width: 100%; max-width: 100%; opacity: .4; pointer-events: none; transition: opacity .3s; }
.stxlw--pricing .calc-continue.on { opacity: 1; pointer-events: auto; }

/* ============ FEATURES (cards) ============ */
.stxlw--features { background: var(--ink-2); display: block; }
.stxlw--features.bg-none { background: transparent; }
.stxlw--features .feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.stxlw--features .feat {
  position: relative; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); background: var(--panel-2);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.stxlw--features .feat:hover { transform: translateY(-4px); border-color: rgba(180,124,253,.35); box-shadow: 0 24px 50px -28px rgba(180,124,253,.5); }
.stxlw--features .feat__img { aspect-ratio: 16/10; overflow: hidden; background: radial-gradient(120% 90% at 50% 25%, #241b33, #0f0820); }
.stxlw--features .feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.stxlw--features .feat:hover .feat__img img { transform: scale(1.05); }
.stxlw--features .feat__body { padding: 26px 30px 30px; }
.stxlw--features .feat__body h3 { font-size: clamp(19px, 2vw, 24px); color: #fff; white-space: pre-line; }
.stxlw--features .feat__body p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 52ch; white-space: pre-line; }

/* ============ SPEC TABLE ============ */
.stxlw--specs { background: var(--ink-2); display: block; }
.stxlw--specs .spec-card {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: rgba(38,32,48,.7); backdrop-filter: blur(12px);
}
.stxlw--specs .spec-table { width: 100%; border-collapse: collapse; }
.stxlw--specs .spec-table th, .stxlw--specs .spec-table td { text-align: left; padding: 18px 22px; vertical-align: top; border: 1px solid rgba(234,237,240,.12); font-size: 14px; }
.stxlw--specs .spec-table thead th { font-family: var(--display); font-weight: 700; font-size: 14px; color: #fff; background: rgba(255,255,255,.04); letter-spacing: .01em; }
.stxlw--specs .spec-table thead th:first-child { background: rgba(255,255,255,.07); }
.stxlw--specs .spec-table tbody th { font-family: var(--body); font-weight: 700; color: #fff; background: rgba(255,255,255,.05); width: 180px; }
.stxlw--specs .spec-table td { color: rgba(255,255,255,.74); line-height: 1.5; white-space: pre-line; }
.stxlw--specs .spec-grouphdr td { font-family: var(--display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--brand-pink); background: rgba(180,124,253,.07); }
.stxlw--specs .spec-scroll { overflow-x: auto; }

/* ============ GALLERY MARQUEE ============ */
.stxlw--marquee { background: var(--ink); display: block; }
.stxlw--marquee .marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.stxlw--marquee .marquee__track { display: flex; gap: 14px; width: max-content; animation: stxlw-scrollx 48s linear infinite; }
.stxlw--marquee .marquee__track img { height: 190px; width: 300px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-soft); }
@keyframes stxlw-scrollx { to { transform: translateX(-50%); } }

/* ============ FEATURE ROWS (Smart LED) ============ */
.stxlw--feature-rows { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); display: block; }
.stxlw--feature-rows .frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; margin-top: 72px; }
.stxlw--feature-rows .frow:first-of-type { margin-top: 0; }
.stxlw--feature-rows .frow:nth-child(even) .frow__media { order: 2; }
.stxlw--feature-rows .frow__media {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; position: relative;
  background: radial-gradient(120% 100% at 50% 30%, #1c1430, #0c0820);
  border: 1px solid var(--line-soft);
}
/* Feature-Rows images always cover their frame (cover-only by design). */
.stxlw--feature-rows .frow__media img,
.stxlw--feature-rows .frow__media.contain img { width: 100%; height: 100%; object-fit: cover; padding: 0; }
.stxlw--feature-rows .frow__icon { width: 52px; height: 52px; border-radius: 13px; background: var(--grad-brand); display: grid; place-items: center; margin-bottom: 22px; box-shadow: inset -16px 0 18px -10px var(--brand-orange); }
.stxlw--feature-rows .frow__icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; }
.stxlw--feature-rows .frow__txt h3 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 10px; }
.stxlw--feature-rows .frow__txt p { margin-top: 14px; color: var(--ink-400); font-size: 15px; line-height: 1.65; max-width: 46ch; white-space: pre-line; }

/* ============ CTA CARD (Impact) ============ */
.stxlw--cta { background: var(--ink-2); display: block; }
.stxlw--cta .impact-card {
  background: radial-gradient(120% 140% at 50% 0%, #1d1030 0%, #120822 60%);
  border: 1px solid var(--line-soft);
  border-radius: 22px; padding: clamp(40px, 6vw, 72px) clamp(24px, 6vw, 80px); text-align: center;
  max-width: 1080px; margin-inline: auto; box-shadow: 0 40px 90px -40px rgba(0,0,0,.7);
}
.stxlw--cta .impact-card h2 { font-size: clamp(26px, 3.6vw, 40px); }
.stxlw--cta .impact-form { margin: 34px auto 0; max-width: 590px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stxlw--cta .impact-form input {
  height: 50px; border-radius: 9px; border: 1px solid #241a30; background: var(--panel-input);
  color: #fff; padding: 0 16px; font: 15px var(--body); outline: none; transition: border-color .2s, box-shadow .2s;
}
.stxlw--cta .impact-form input::placeholder { color: rgba(253,253,253,.55); }
.stxlw--cta .impact-form input:focus { border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(180,124,253,.2); }
.stxlw--cta .impact-form .btn { grid-column: 1 / -1; width: 100%; height: 50px; }
.stxlw--cta .impact-note { margin-top: 18px; font-size: 13px; color: var(--ink-400); }

/* ============ USE CASES ============ */
.stxlw--usecases { background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%); display: block; }
.stxlw--usecases .uc-layout { display: grid; grid-template-columns: 380px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.stxlw--usecases .uc-intro { position: sticky; top: 110px; }
.stxlw--usecases .uc-intro h2 { font-size: clamp(30px, 3.6vw, 44px); }
.stxlw--usecases .uc-intro p { margin-top: 20px; color: var(--ink-400); font-size: 16px; line-height: 1.6; white-space: pre-line; }
.stxlw--usecases .uc-intro .btn { margin-top: 30px; }
.stxlw--usecases .uc-list { display: flex; flex-direction: column; gap: 18px; }
.stxlw--usecases .uc {
  display: grid; grid-template-columns: 1fr 300px; align-items: stretch; gap: 0;
  border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden;
  background: linear-gradient(120deg, rgba(43,35,56,.65), rgba(38,32,48,.4));
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.stxlw--usecases .uc:hover { border-color: rgba(180,124,253,.4); transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(180,124,253,.6); }
/* Clickable card: strip link styling, keep the card look. */
.stxlw--usecases a.uc { text-decoration: none; color: inherit; cursor: pointer; }
.stxlw--usecases a.uc:hover .uc__txt h3 { color: var(--brand, #b47cfd); }
.stxlw--usecases .uc__txt { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; }
.stxlw--usecases .uc__txt h3 { font-size: clamp(19px, 2vw, 24px); white-space: pre-line; }
.stxlw--usecases .uc__txt p { margin-top: 10px; color: var(--ink-400); font-size: 14px; line-height: 1.6; white-space: pre-line; }
.stxlw--usecases .uc__img { overflow: hidden; }
.stxlw--usecases .uc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.stxlw--usecases .uc:hover .uc__img img { transform: scale(1.07); }

/* ============ BEFORE / AFTER ============ */
.stxlw--ba { background: var(--ink); display: block; }
.stxlw--ba .ba {
  position: relative; max-width: 1240px; margin-inline: auto; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16/9; user-select: none; border: 1px solid var(--line-soft); cursor: ew-resize;
}
.stxlw--ba .ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stxlw--ba .ba__after { clip-path: inset(0 0 0 50%); will-change: clip-path; }
.stxlw--ba .ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); box-shadow: 0 0 14px rgba(0,0,0,.5); }
.stxlw--ba .ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0,0,0,.4); }
.stxlw--ba .ba__grip svg { width: 22px; height: 22px; fill: #0a0118; }
.stxlw--ba .ba__tag { position: absolute; top: 16px; padding: 7px 13px; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border-radius: 999px; background: rgba(10,1,24,.6); backdrop-filter: blur(6px); color: #fff; z-index: 2; }
.stxlw--ba .ba__tag.l { left: 16px; } .stxlw--ba .ba__tag.r { right: 16px; }
.stxlw--ba .cap { text-align: center; margin-top: 22px; font-family: var(--display); font-size: 14px; letter-spacing: .04em; color: var(--ink-400); }

/* ============ CARD GRID (Fast shipment / Installation) ============ */
.stxlw--cardgrid { display: block; }
.stxlw--cardgrid.bg-ink { background: var(--ink); }
.stxlw--cardgrid.bg-ramp { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.stxlw--cardgrid .cg-grid { display: grid; gap: 22px; }
.stxlw--cardgrid .cg-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stxlw--cardgrid .cg-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stxlw--cardgrid .cg {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft);
  background: rgba(43,35,56,.4); transition: transform .3s, border-color .3s; display: flex; flex-direction: column;
}
.stxlw--cardgrid .cg.solid { background: linear-gradient(180deg, #16101f, #0d0818); }
.stxlw--cardgrid .cg:hover { transform: translateY(-4px); border-color: rgba(180,124,253,.35); }
.stxlw--cardgrid .cg__img { aspect-ratio: 16/11; overflow: hidden; background: radial-gradient(110% 100% at 50% 25%, #1a1230, #0c0820); }
.stxlw--cardgrid .cg__img.center { display: grid; place-items: center; padding: 24px; aspect-ratio: 16/10; }
.stxlw--cardgrid .cg__img.center img { max-height: 100%; width: auto; object-fit: contain; }
.stxlw--cardgrid .cg__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); box-sizing: border-box; }
/* Contain fit keeps a small default inset unless the Image padding control overrides via inline wrapper padding. */
.stxlw--cardgrid .cg__img.fit-contain img { object-fit: contain; }
.stxlw--cardgrid .cg__img.fit-contain:not([style*="padding"]) img { padding: 20px; }
.stxlw--cardgrid .cg:hover .cg__img img { transform: scale(1.05); }
.stxlw--cardgrid .cg__body { padding: 22px 26px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stxlw--cardgrid .cg__body.stack { flex-direction: column; align-items: flex-start; }
.stxlw--cardgrid .cg__body h3 { font-size: 19px; white-space: pre-line; }
.stxlw--cardgrid .cg__body.row h3 { font-family: var(--body); font-weight: 600; font-size: 17px; letter-spacing: 0; }
.stxlw--cardgrid .cg__body p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--ink-400); white-space: pre-line; }
.stxlw--cardgrid .chev { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none; transition: background .2s; }
.stxlw--cardgrid .cg:hover .chev { background: var(--grad-brand); border-color: transparent; }
.stxlw--cardgrid .chev svg { width: 14px; height: 14px; stroke: #fff; }
.stxlw--cardgrid .cg-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #34d399; background: rgba(52,211,153,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.stxlw--cardgrid .cg-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }

/* ============ TESTIMONIAL / CLOSE ============ */
.stxlw--close { background: radial-gradient(60% 100% at 50% 0%, #35004b 0%, var(--ink) 62%); text-align: center; display: block; }
.stxlw--close p { max-width: 760px; margin-inline: auto; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.3; letter-spacing: -0.01em; }
.stxlw--close .stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 26px; }
.stxlw--close .stars svg { width: 22px; height: 22px; fill: var(--brand-orange); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .stxlw--features .feat-grid,
  .stxlw--feature-rows .frow,
  .stxlw--cta .impact-form { grid-template-columns: 1fr; }
  .stxlw--feature-rows .frow:nth-child(even) .frow__media { order: 0; }
  .stxlw--usecases .uc-layout { grid-template-columns: 1fr; }
  .stxlw--usecases .uc-intro { position: static; }
  .stxlw--pricing .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .stxlw--cardgrid .cg-grid.cols-2,
  .stxlw--cardgrid .cg-grid.cols-3 { grid-template-columns: 1fr; }
  .stxlw--usecases .uc { grid-template-columns: 1fr 200px; }
}
@media (max-width: 640px) {
  /* Tighter vertical rhythm so sections don't feel oversized on phones. */
  .stxlw .sec { padding-block: 56px; }

  /* HERO — smaller headline + comfortable, full-width stacked CTAs
     (replaces the old huge side-by-side buttons that overflowed). */
  .stxlw--hero .hero__inner { padding-block: 44px 52px; }
  .stxlw--hero .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .stxlw--hero .hero__sub { font-size: 14px; margin-top: 16px; }
  .stxlw--hero .hero__actions { gap: 10px; margin-top: 24px; }
  .stxlw--hero .hero__actions .btn {
    width: 100%; padding: 13px 18px; font-size: 12px; letter-spacing: .08em; min-height: 48px;
  }
  .stxlw--hero .hero__link { width: 100%; justify-content: center; margin-top: 4px; }

  /* PRICING */
  .stxlw--pricing .loc-grid { grid-template-columns: 1fr; }
  .stxlw--pricing .calc-card { border-radius: 18px; }

  /* FEATURE / CARD bodies a touch tighter */
  .stxlw--features .feat__body { padding: 20px 22px 24px; }
  .stxlw--cardgrid .cg__body { padding: 18px 20px 22px; }

  /* FEATURE ROWS */
  .stxlw--feature-rows .frow { margin-top: 40px; gap: 24px; }

  /* USE CASES */
  .stxlw--usecases .uc { grid-template-columns: 1fr; }
  .stxlw--usecases .uc__img { aspect-ratio: 16/9; order: -1; }
  .stxlw--usecases .uc-intro .btn { width: 100%; }

  /* MARQUEE — lighter tiles on phones */
  .stxlw--marquee .marquee__track img { height: 150px; width: 240px; }

  /* CTA form — keep a comfortable tap height */
  .stxlw--cta .impact-form .btn { min-height: 50px; }

  /* SPEC table scrolls smoothly inside its card on touch */
  .stxlw--specs .spec-scroll { -webkit-overflow-scrolling: touch; }
}
