/* Homepage Arcade embed + tight "What's possible" grid.
   Scoped to the homepage sections this file is loaded for.
   Does not change feature-page styles. Media treatment matches
   DQA r4: transparent ground, no white card, no box-shadow,
   drop-shadow that follows the frame, 20px radius. */

/* section.s is more specific than .home-arcade and was forcing
   96px padding, a white fill, and a double hairline against the
   preceding #contrast.chat-plus. Restore the intended rhythm:
   page-ground section after the white chat-plus block. */
section.s.home-arcade{
  padding:72px 0 64px;
  background:var(--page, #F4F6F9);
  border-top:0;
}
.home-arcade .head{
  margin-bottom:36px;
  text-align:center;
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}
.home-arcade h2{margin:0}
.home-arcade .lede{
  margin:14px auto 0;
  font:400 18px/1.45 var(--sans);
  color:var(--body);
  max-width:36ch;
  font-weight:400;
}

/* Arcade's published ratio for this demo (from the iframely rel
   on the share page) is 1920 / 1357.7015755329007, plus a 41px
   bottom toolbar. A constant 16/9.26 aspect was ~180px short at
   1080 and crushed the player on tablet and phone.
   padding-bottom is added outside the aspect box via content-box
   so the 41px is a fixed toolbar, not a fraction of width.
   Percentage padding cannot be used: it would be relative to
   .wrap, which is wider than this max-width:1080 frame. */
.home-arcade-frame{
  position:relative;
  width:100%;
  max-width:1080px;
  margin:0 auto;
  box-sizing:content-box;
  aspect-ratio:1920 / 1357.7015755329007;
  padding-bottom:41px;
  height:auto;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
  filter:drop-shadow(0 12px 32px rgba(1,51,89,.16))
         drop-shadow(0 2px 6px rgba(1,51,89,.08));
}
.home-arcade-frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:20px;
  background:transparent;
  color-scheme:light;
  overflow:clip;
}

/* Jump target for the hero "See what's possible" CTA. */
#see-it{scroll-margin-top:80px}

/* Headline-only possible cards: one 3-col grid, no empty body gap. */
#possible .home-possible-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin:0 0 28px;
  align-items:stretch;
}
#possible .home-possible-grid .possible-card{
  height:auto;
  min-height:0;
  padding:22px 22px 24px;
  gap:12px;
}
/* Reserve two title lines so both rows share a height when some
   titles wrap. */
#possible .home-possible-grid .possible-card h3{
  min-height:2.6em;
}

@media (max-width:800px){
  section.s.home-arcade{padding:48px 0 40px}
  .home-arcade .head{margin-bottom:28px}
  .home-arcade .lede{font-size:17px}
  #possible .home-possible-grid{
    grid-template-columns:1fr 1fr;
    gap:16px;
  }
}
@media (max-width:600px){
  section.s.home-arcade{padding:40px 0 32px}
  .home-arcade-frame{border-radius:16px}
  .home-arcade-frame iframe{border-radius:16px}
  #possible .home-possible-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  #possible .home-possible-grid .possible-card h3{min-height:0}
}

/* Chat-plus section: replaces the comparison table and Before/After
   cards. Four gain cards, 4-col desktop, 2x2 tablet, stacked on phone.
   Matches existing homepage card treatment (white, 18px radius, card
   border and shadow, navy title, body-color sentence). */
#contrast.chat-plus{
  background:#fff;
  border-top:1px solid var(--hairline, #E8E6E1);
  border-bottom:1px solid var(--hairline, #E8E6E1);
}
#contrast.chat-plus .head{margin-bottom:40px}
#contrast.chat-plus h2{
  max-width:18ch;
  margin-left:auto;
  margin-right:auto;
  text-wrap:balance;
}
#contrast.chat-plus .lede{
  margin:16px auto 0;
  font:400 18px/1.5 var(--sans);
  font-weight:400;
  color:var(--body);
  max-width:36em;
  letter-spacing:0;
}
.chat-plus-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:20px;
  align-items:stretch;
}
.chat-plus-card{
  background:#fff;
  border:var(--card-border, 1px solid var(--line, #E8E6E1));
  border-radius:18px;
  padding:24px 24px 26px;
  box-shadow:var(--card-shadow, var(--shadow));
  display:flex;
  flex-direction:column;
  gap:10px;
  height:100%;
  box-sizing:border-box;
}
.chat-plus-card h3{
  margin:0;
  font:700 18px/1.3 var(--display);
  color:var(--navy);
  letter-spacing:-.01em;
  /* reserve two lines so bodies line up across the row */
  min-height:2.6em;
}
.chat-plus-card p{
  margin:0;
  font-size:15.5px;
  line-height:1.5;
  color:var(--body);
  text-wrap:pretty;
}
.chat-plus-close{
  text-align:center;
  margin:36px auto 0;
  font:600 22px/1.35 var(--display);
  color:var(--navy);
  letter-spacing:-.02em;
}

@media (max-width:1024px){
  .chat-plus-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px;
  }
  /* Keep the two-line title reserve in the 2-col layout so a
     wrapping h3 does not leave the neighbor's body starting higher. */
  .chat-plus-card h3{min-height:2.6em}
}
@media (max-width:600px){
  .chat-plus-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  .chat-plus-card{padding:22px 20px 22px}
  .chat-plus-card h3{min-height:0}
  .chat-plus-close{margin-top:28px;font-size:20px}
}
