/* ============================================
   WINS PAGE — proof wall
   Reuses .hp tokens & .testi-* card chrome from styles.css.
   ============================================ */

.hp.wp-root {
  --hp-section-accent: var(--ec-lilac);
  background: var(--hp-bg);
  color: var(--hp-fg);
}

/* MARQUEE — override the homepage's white/cherry "real" variant to lime green on wins. */
.hp.wp-root .marquee--real {
  background: var(--ec-lime);
  color: var(--ec-black);
  border-color: var(--ec-black);
}
.hp.wp-root .marquee--real .marquee-it,
.hp.wp-root .marquee--real .marquee-star { color: var(--ec-black); }

/* HERO ───────────────────────────────────────────── */
.hp .wp-hero {
  padding: 120px 0 64px;
  text-align: center;
}
.hp .wp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ec-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--hp-section-accent);
  margin-bottom: 28px;
  opacity: 0.85;
}
.hp .wp-hero-headline {
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: calc(128px * var(--hp-typescale));
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 32px;
  text-wrap: balance;
}
.hp .wp-hero-script {
  font-family: var(--ec-script);
  font-weight: 400;
  text-transform: none;
  font-size: 1.05em;
  color: var(--hp-section-accent);
  line-height: 0.9;
  display: inline-block;
  transform: translateY(0.05em);
}
.hp .wp-hero-lede {
  max-width: 740px;
  margin: 0 auto;
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: calc(22px * var(--hp-typescale));
  line-height: 1.5;
  opacity: 0.85;
}
.hp .wp-hero-lede em {
  font-style: italic;
  color: var(--hp-section-accent);
}

/* STATS ─────────────────────────────────────────── */
.hp .wp-stats-section { padding: 40px 0 96px; }
.hp .wp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-top: 1.5px solid var(--hp-line);
  border-bottom: 1.5px solid var(--hp-line);
}
.hp .wp-stat {
  --stat-accent: var(--ec-lime);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 56px 40px;
  text-align: left;
}
.hp .wp-stat + .wp-stat {
  border-left: 1.5px solid var(--hp-line);
}
.hp .wp-stat-marker {
  font-family: var(--ec-sans);
  font-size: 18px;
  line-height: 1;
  color: var(--stat-accent);
  letter-spacing: 0;
}
.hp .wp-stat-n {
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: clamp(72px, 9vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--stat-accent);
}
.hp .wp-stat-prefix,
.hp .wp-stat-suffix {
  font-size: 0.55em;
  font-weight: 800;
  vertical-align: 0.42em;
  letter-spacing: -0.02em;
  opacity: 0.9;
}
.hp .wp-stat-prefix { margin-right: 2px; }
.hp .wp-stat-suffix { margin-left: 2px; }
.hp .wp-stat-l {
  font-family: var(--ec-sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--hp-fg);
  opacity: 0.78;
  max-width: 14ch;
  text-wrap: balance;
}

/* THE WALL — masonry via CSS columns. Each tile is natural aspect ratio so
   dashboard screenshots are shown in full (no cropping). ───────────────── */
.hp .wp-wall-section { padding: 80px 0 80px; }
.hp .wp-wall-header  { text-align: center; margin-bottom: 56px; }
.hp .wp-wall-eyebrow {
  display: inline-block;
  color: var(--hp-section-accent);
  font-size: 12px;
  letter-spacing: 0.22em;
  margin-bottom: 16px;
}
.hp .wp-wall-title {
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: calc(72px * var(--hp-typescale));
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
}
.hp .wp-wall-script {
  font-family: var(--ec-script);
  font-weight: 400;
  text-transform: none;
  font-size: 1.05em;
  color: var(--hp-section-accent);
  line-height: 0.9;
  display: inline-block;
}
.hp .wp-wall {
  column-count: 4;
  column-gap: 18px;
}
.hp .wp-tile {
  --tile-accent: var(--ec-lime);
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  /* Don't split a tile across columns. */
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform .2s var(--ec-ease), box-shadow .2s var(--ec-ease);
}
.hp .wp-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 var(--tile-accent), 0 16px 36px rgba(0,0,0,0.45);
}
.hp .wp-tile-img-wrap {
  position: relative;
  width: 100%;
  background: #fff;
  overflow: hidden;
}
.hp .wp-tile-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.hp .wp-tile-caption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 18px;
  background: #0a0a0a;
  color: #fff;
  border-top: 2px solid var(--tile-accent);
}
.hp .wp-tile-num {
  font-family: var(--ec-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--tile-accent);
  flex: 0 0 auto;
  padding-top: 2px;
}
.hp .wp-tile-text {
  font-family: var(--ec-sans);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.005em;
}

/* TESTIMONIALS SPACING ─────────────────────────── */
.hp .wp-testimonials { padding: 96px 0; }

/* DM TESTIMONIAL WALL — Pinterest masonry of DM / sales screenshots. ───── */
.hp .wp-dms-section {
  padding: 96px 0;
  background: var(--ec-black);
  border-top: 1.5px solid var(--hp-line);
}
.hp .wp-dms-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.hp .wp-dms-eyebrow {
  display: inline-block;
  color: var(--hp-section-accent);
  font-size: 12px;
  letter-spacing: 0.22em;
  margin-bottom: 16px;
}
.hp .wp-dms-title {
  font-family: var(--ec-sans);
  font-weight: 900;
  font-size: calc(64px * var(--hp-typescale));
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.hp .wp-dms-script {
  font-family: var(--ec-script);
  font-weight: 400;
  text-transform: none;
  font-size: 1.05em;
  color: var(--hp-section-accent);
  line-height: 0.9;
  display: inline-block;
}
.hp .wp-dms-lede {
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: calc(18px * var(--hp-typescale));
  line-height: 1.5;
  opacity: 0.7;
  margin: 0;
}
.hp .wp-dm-wall {
  column-count: 4;
  column-gap: 14px;
}
.hp .wp-dm-tile {
  --dm-accent: var(--ec-lime);
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform .2s var(--ec-ease), box-shadow .2s var(--ec-ease);
}
.hp .wp-dm-tile:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 0 0 1.5px var(--dm-accent), 0 18px 36px rgba(0,0,0,0.45);
}
.hp .wp-dm-tile img {
  width: 100%;
  height: auto;
  display: block;
}

/* TABLET / SMALL DESKTOP ───────────────────────── */
@container hp (min-width: 761px) and (max-width: 1040px) {
  .hp .wp-wall    { column-count: 3; }
  .hp .wp-dm-wall { column-count: 3; }
  .hp .wp-stats   { grid-template-columns: repeat(3, 1fr); }
}

/* MOBILE ────────────────────────────────────────── */
@container hp (max-width: 760px) {
  .hp .wp-hero { padding: 72px 0 32px; }
  .hp .wp-hero-headline { font-size: calc(48px * var(--hp-typescale)); }
  .hp .wp-hero-lede     { font-size: 16px; }
  .hp .wp-stats-section { padding: 24px 0 56px; }
  .hp .wp-stats {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .hp .wp-stat {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
    padding: 24px 4px;
  }
  .hp .wp-stat + .wp-stat {
    border-left: none;
    border-top: 1.5px solid var(--hp-line);
  }
  .hp .wp-stat-marker { display: none; }
  .hp .wp-stat-n { font-size: 56px; flex: 0 0 auto; min-width: 130px; }
  .hp .wp-stat-l { font-size: 14px; opacity: 0.85; max-width: none; }
  .hp .wp-wall-section  { padding: 48px 0 56px; }
  .hp .wp-wall-header   { margin-bottom: 36px; }
  .hp .wp-wall-title    { font-size: calc(40px * var(--hp-typescale)); }
  .hp .wp-wall          { column-count: 2; column-gap: 12px; }
  .hp .wp-tile          { margin-bottom: 12px; border-radius: 12px; }
  .hp .wp-tile-caption  { padding: 12px 14px; gap: 10px; }
  .hp .wp-tile-text     { font-size: 14px; }
  .hp .wp-testimonials  { padding: 64px 0; }
  .hp .wp-dms-section   { padding: 56px 0; }
  .hp .wp-dms-header    { margin-bottom: 36px; }
  .hp .wp-dms-title     { font-size: calc(36px * var(--hp-typescale)); }
  .hp .wp-dms-lede      { font-size: 15px; }
  .hp .wp-dm-wall       { column-count: 2; column-gap: 10px; }
  .hp .wp-dm-tile       { margin-bottom: 10px; border-radius: 10px; }
}

/* ── VIDEO TESTIMONIALS ───────────────────────────────────────────────── */

.hp .wp-vids-section { background: var(--ec-black); }

.hp .wp-vids {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.hp .wp-vid {
  --tile-accent: var(--ec-lime);
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
}

/* Explicit 9:16 so the frame never collapses before Wistia loads. */
.hp .wp-vid-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #050505;
}

.hp .wp-vid-frame wistia-player { display: block; width: 100%; height: 100%; }

.hp .wp-vid-caption {
  padding: 18px 20px 22px;
  text-align: center;
  border-top: 2px solid var(--tile-accent);
}

.hp .wp-vid-name {
  display: block;
  font-family: var(--ec-sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: #fff;
}

.hp .wp-vid-brand {
  display: block;
  margin-top: 4px;
  font-family: var(--ec-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tile-accent);
}

/* ── TRUSTPILOT CARDS ─────────────────────────────────────────────────── */

/* Flows straight on from the screenshot wall above it. No heading, no divider. */
.hp .wp-trustpilot {
  background: var(--ec-black);
  padding-top: 0;
}

.hp .tpx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.hp .tpx-card--wide { grid-column: 1 / -1; }

.hp .tpx-card {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #191919;
  border: 1px solid #dcdce6;
  border-radius: 8px;
  padding: 24px 26px 26px;
}

.hp .tpx-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }

.hp .tpx-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex: 0 0 auto;
}

.hp .tpx-who { flex: 1 1 auto; min-width: 0; display: block; padding-top: 2px; }
.hp .tpx-name { display: block; font-weight: 700; font-size: 16px; line-height: 1.25; color: #191919; }
.hp .tpx-meta { display: block; margin-top: 3px; font-size: 13px; line-height: 1.2; color: #6f6f6f; }
.hp .tpx-date { flex: 0 0 auto; padding-top: 3px; font-size: 13px; color: #6f6f6f; white-space: nowrap; }

.hp .tpx-rating { display: flex; gap: 3px; margin: 0 0 16px; }
.hp .tpx-rating svg { display: block; width: 24px; height: 24px; }

.hp .tpx-title {
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.32;
  color: #191919;
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0;
  text-wrap: pretty;
}

.hp .tpx-body p {
  font-family: inherit;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.56;
  color: #191919;
  margin: 0 0 13px;
  text-wrap: pretty;
}

.hp .tpx-body p:last-child { margin-bottom: 0; }

.hp .tpx-footnote { margin-top: 34px; text-align: center; }

.hp .tpx-footnote a {
  font-family: var(--ec-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}

.hp .tpx-footnote a:hover { color: var(--ec-lilac); border-color: var(--ec-lilac); }

@media (max-width: 900px) {
  .hp .wp-vids { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .hp .tpx-grid { grid-template-columns: 1fr; gap: 18px; }
  .hp .tpx-card--wide { grid-column: auto; }
  .hp .tpx-card { padding: 20px 20px 22px; }
  .hp .tpx-date { display: none; }
}
