/* ==================================================================
   Features Trio — kwizzbit/features-trio (whole-file segment)
   Faithful slice of /HTML/features-3.html. Globals (reset/body/font-face/:root)
   dropped; tokens canonical (theme.json). Full-bleed via the .kwb-segment wrapper.
   ================================================================== */

.features-trio{
  --kwb-ease:                  cubic-bezier(0.22, 1, 0.36, 1);
  /* LIGHT THEME — matched to features-9 (homepage) 2026-06-05 */
  --kwb-features-panel-bg:     #FFFAF5;
  --kwb-features-panel-border: #B3958A;
  --kwb-features-panel-title:  #1D0B09;
  --kwb-features-panel-body:   #473531;
  --kwb-features-badge-border: rgba(255,54,35,0.45);
  --kwb-features-badge-text:   #FF3623;
}

.features-trio {
  background: var(--wp--preset--color--cream);
  width: 100%;
  overflow-x: clip;
}
.features-trio__inner {
  width: 100%;
  /* roomier above/below the content (was 5rem … 0) */
  padding: 7rem clamp(1rem, 4vw, 3rem) 4rem;
  box-sizing: border-box;
}
.features-trio__constrain {
  width: calc(3 * 376px + 2 * 30px);
  max-width: 100%;
  margin-inline: auto;
}
/* ── Header ─────────────────────────────────────────────────── */
/* WP EDITABLE: eyebrow, headline (keep <em> + .features__title-cursor), CTA */
.features-trio__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  width: 100%;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s var(--kwb-ease), transform 0.65s var(--kwb-ease);
}
.features-trio__header.is-visible { opacity: 1; transform: translateY(0); }
.features-trio__eyebrow {
  display: block;
  font-family: var(--wp--preset--font-family--pixel);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--coral);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  line-height: 1;
}
.features-trio__title {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 400;
  font-size: 3.4375rem;
  line-height: 0.9;
  letter-spacing: -0.091em;
  color: var(--wp--preset--color--ink);
}
.features-trio__title em { color: var(--wp--preset--color--coral); font-style: normal; }
/* "for" is a connector word — reduce its weight 20% (em-relative, so it holds
   the ratio across every breakpoint). Mirrors the audience-hero treatment. */
.features-trio__for { font-size: 0.8em; }
.features-trio__title--mobile { display: none; }
.features-trio__title--desktop { display: block; }
/* Desktop: bump to match the ready-made headline size + treatment (left-aligned) */
@media (min-width: 1024px) {
  .features-trio__title {
    font-size: 4.0625rem;       /* 65px — matches .ready-made__title */
    line-height: 0.889;
    letter-spacing: -0.10769em;
  }
  /* +24px above the segment (desktop only; tablet & mobile unchanged) */
  .features-trio__inner { padding-top: calc(7rem + 24px); }
}
@keyframes ft-cursor-blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.features-trio__title .title-cursor {
  color: var(--wp--preset--color--coral);
  animation: ft-cursor-blink 1.1s step-end infinite;
  display: inline-block;
}
.features-trio__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to right, #1D0B09, #3E1916);
  color: #fff;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0 1.25rem;
  height: 44px;
  border-radius: 0;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 160ms var(--kwb-ease), transform 160ms var(--kwb-ease);
}
@media (hover: hover) {
  .features-trio__cta:hover {
    background: linear-gradient(to right, #0D0504, #2A100E);
    transform: translateY(-1px);
  }
}
.features-trio__cta:active {
  background: linear-gradient(to right, #0D0504, #2A100E);
  transform: translateY(1px);
}
/* ── 3-column grid — mirrors full version layout ─────────────── */
.features-trio__grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
}
.features-trio__col {
  display: flex;
  flex-direction: column;
  width: 376px;
  flex-shrink: 0;
}
/* ── Panels ─────────────────────────────────────────────────── */
.features-trio .feature-panel {
  background: var(--kwb-features-panel-bg);
  box-shadow: 0 20px 50px rgba(255,54,35,0.10);
  padding: 1.5rem;
  width: 376px;
  height: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  overflow: hidden;
  position: relative;
  border-radius: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s var(--kwb-ease);
}
.features-trio .feature-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s var(--kwb-ease), transform 0.65s var(--kwb-ease);
}
@media (hover: hover) {
.features-trio .feature-panel.is-visible:hover .fp-asset { transform: scale(1.02); }
}
.features-trio .feature-panel__title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.features-trio .feature-panel__title {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 24px;
  letter-spacing: -0.091em;
  color: var(--kwb-features-panel-title);
}
.features-trio .feature-panel__badge {
  font-family: var(--wp--preset--font-family--body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border: 1px solid var(--kwb-features-badge-border);
  color: var(--kwb-features-badge-text);
  border-radius: 0;
}
.features-trio .feature-panel__body {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.9375rem;
  line-height: 24px;
  color: var(--kwb-features-panel-body);
  width: 302px;
  max-width: 100%;
}
.features-trio .feature-panel__illus { margin-top: auto; }
.features-trio .feature-panel__illus--asset { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.features-trio .fp-asset {
  width: 100%;
  height: auto;
  aspect-ratio: 376 / 128;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: bottom center;
  transition: transform 120ms var(--kwb-ease);
}
/* ── Ghost panels + fade ─────────────────────────────────────── */
/* Decorative only — aria-hidden. Cosmetically match real panels.
   Desktop: 3 ghosts in a row. Tablet/mobile: 1.
   Gradient is self-contained within this wrapper — never bleeds
   onto the real panels above. */
.features-trio__ghost-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: -48px; /* lift row 2 up tight under row 1 (peek closer, less dead gap) */
  padding-bottom: 8rem;
}
.features-trio__ghosts {
  width: calc(3 * 376px + 2 * 30px);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
  box-sizing: border-box;
  display: flex;
  gap: 30px;
  justify-content: center;
  height: 60px; /* enough to see panel tops before gradient takes over */
  overflow: hidden;
}
.features-trio__ghost {
  width: 376px;
  flex-shrink: 0;
  height: 300px;
  background: var(--kwb-features-panel-bg);
  box-shadow: 0 20px 50px rgba(255,54,35,0.10);
}
.features-trio__fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(252,240,230,0) 0%,
    rgba(252,240,230,0.7) 20%,
    rgba(252,240,230,1) 40%
  );
  pointer-events: none;
}
/* ── Breakpoints ─────────────────────────────────────────────── */
@media (max-width: 1023px) {
.features-trio__constrain { width: 100%; max-width: 376px; }
.features-trio__header { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.features-trio__title {
    font-size: clamp(1.875rem, 10.13vw, 2.375rem);
    line-height: 0.8421;
    letter-spacing: -0.10763em;
  }
.features-trio__eyebrow { font-size: 19px; }
.features-trio__grid { flex-direction: column; align-items: center; gap: 30px; }
.features-trio__col { width: 100%; max-width: 376px; }
.features-trio .feature-panel { width: 100%; height: auto; aspect-ratio: 376 / 300; }
/* 1 ghost on tablet/mobile — matches panel width */
.features-trio__ghost-wrap { padding-inline: clamp(1rem, 4vw, 3rem); box-sizing: border-box; }
.features-trio__ghosts { width: 100%; max-width: 376px; padding-inline: 0; margin-inline: auto; }
.features-trio__ghost:nth-child(2), .features-trio__ghost:nth-child(3) { display: none; }
.features-trio__ghost { width: 100%; }
}
@media (max-width: 640px) {
.features-trio__inner { padding-block-start: 5rem; }
.features-trio__title--desktop { display: none; }
.features-trio__title--mobile { display: block; }
/* Headline = homepage hero size (overrides the 2rem set above) */
.features-trio__title {
  font-size: clamp(1.875rem, 10.13vw, 2.375rem);
  line-height: 0.8421;
  letter-spacing: -0.10763em;
}
/* .features-trio__for { font-size: 0.8em } is already set globally — inherits automatically */
/* Centre eyebrow + headline + CTA button (overrides flex-start from tablet block) */
.features-trio__header {
  align-items: center;
  text-align: center;
}
.features-trio__eyebrow { font-size: 18px; }
.features-trio .feature-panel__body { font-size: 0.875rem; }
.features-trio .feature-panel { aspect-ratio: 376 / 260; gap: 0; min-height: 280px; }
/* Tighter bottom — bring pricing segment closer */
.features-trio__ghost-wrap { padding-bottom: 30px; }

/* Scale illustrations down 10% in-place, no crop. Keyed on data-panel so ONE
   rule set covers the base pattern AND every per-audience fork (features-trio-*),
   which all share this stylesheet. Specificity (0,3,0) beats .features-trio .fp-asset.
   Anchors mirror features-9. Both anti-cheat spellings covered. */
.features-trio [data-panel="plugins"]      .fp-asset,
.features-trio [data-panel="insights"]     .fp-asset,
.features-trio [data-panel="leaderboards"] .fp-asset,
.features-trio [data-panel="anticheat"]    .fp-asset,
.features-trio [data-panel="anti-cheat"]   .fp-asset,
.features-trio [data-panel="sharing"]      .fp-asset { transform: scale(0.90); transform-origin: bottom left; }

.features-trio [data-panel="controls"]     .fp-asset,
.features-trio [data-panel="instant-wins"] .fp-asset,
.features-trio [data-panel="device"]       .fp-asset,
.features-trio [data-panel="verified"]     .fp-asset { transform: scale(0.90); transform-origin: bottom right; }
}
@media (prefers-reduced-motion: reduce) {
.features-trio__header, .features-trio .feature-panel {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
.features-trio__title .title-cursor { animation: none !important; opacity: 1; }
}
