/* Phone-only layout for the mobile-preview, plus the podcast artwork removal
   (desktop and mobile). Desktop hero and other sections stay unchanged.
   Loaded after style-redesign.css and stool.css. */

/* Podcast: video only (cover artwork removed) on all breakpoints.
   Keep a 16:9 slot so the daily auto-update can still swap the YouTube id
   in the iframe src, title, data-youtube-id and the Watch on YouTube href. */
.pod-media img{display:none}
.pod-media{
  width:100%;
  min-width:0;
  max-width:100%;
}
.yt{
  position:relative;
  width:100%;
  max-width:100%;
  min-width:0;
  aspect-ratio:16/9;
  margin:0;
}
.yt iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

@media (max-width:700px){
  /* Hero order: headline, photo, kicker, full-width Apply.
     display:contents lets those pieces sit on the parent grid without
     changing the desktop two-child .hero-grid structure (needed by the intro). */
  .hero{padding:32px 0 56px}
  .hero-grid{
    display:grid;
    grid-template-columns:1fr;
    grid-template-areas:
      "title"
      "photo"
      "kicker"
      "cta";
    gap:18px;
    align-items:stretch;
  }
  .hero-copy{display:contents}
  .hero-grid h1{
    grid-area:title;
    margin:0;
    text-align:center;
  }
  .hero-grid img,
  .hero-grid .hero-photo{
    grid-area:photo;
    order:0;
    width:100%;
    max-width:100%;
    /* Keep the kicker and Apply on the first screen; crop the tall portrait. */
    max-height:min(42vh, calc(100vh - 470px), 360px);
    object-fit:cover;
    object-position:center 18%;
  }
  .hero-kicker{
    grid-area:kicker;
    margin:0;
    text-align:center;
    max-width:none;
  }
  .hero-copy .ctas,
  .hero-grid .ctas{
    grid-area:cta;
    display:block;
    margin:4px 0 0;
  }
  .hero .ctas .btn{
    display:block;
    width:100%;
    text-align:center;
    box-sizing:border-box;
  }

  /* When the copy wrapper is display:contents, the intro's .hero-grid>*
     rules no longer paint the headline, kicker, CTA or photo. Replay them
     on those pieces, mobile only. */
  html.ff-intro .hero-grid h1,
  html.ff-intro .hero-kicker,
  html.ff-intro .hero-grid .ctas,
  html.ff-intro .hero-grid img{
    opacity:0;
    transform:translateY(14px);
    animation:ffi-show .3s ease 1s forwards;
  }
  html.ff-intro.ffi-go .hero-grid h1,
  html.ff-intro.ffi-go .hero-kicker,
  html.ff-intro.ffi-go .hero-grid .ctas,
  html.ff-intro.ffi-go .hero-grid img{
    animation:ffi-show .3s ease 3.9s forwards;
  }
  html.ff-intro.ffi-reveal .hero-grid h1,
  html.ff-intro.ffi-reveal .hero-kicker,
  html.ff-intro.ffi-reveal .hero-grid .ctas,
  html.ff-intro.ffi-reveal .hero-grid img{
    animation:none;
    opacity:1;
    transform:none;
    transition:opacity .6s cubic-bezier(.45,0,.55,1),transform .6s cubic-bezier(.45,0,.55,1);
  }

  /* Centre every section title. Card headings stay left-aligned. */
  section h2{
    text-align:center;
  }
  section .lede{
    margin-left:auto;
    margin-right:auto;
    text-align:center;
  }

  /* Podcast video and buttons, centred. */
  #podcast .pod,
  #podcast .pod-media,
  #podcast .yt{
    width:100%;
    min-width:0;
    margin-left:auto;
    margin-right:auto;
  }
  #podcast .ctas{
    justify-content:center;
  }
  #podcast .ctas .btn{
    text-align:center;
  }
}

@media (prefers-reduced-motion:reduce){
  html.ff-intro .hero-grid h1,
  html.ff-intro .hero-kicker,
  html.ff-intro .hero-grid .ctas,
  html.ff-intro .hero-grid img{
    opacity:1!important;
    transform:none;
    animation:none;
  }
}

/* Who it's for / not for: gold ticks and a muted-red cross.
   Icons are CSS (inline SVG data-URIs), not emoji. Text is unchanged. */
#who ul.for li,
#who .notfor-line{
  position:relative;
  padding:8px 0 8px 34px;
  margin:0;
  list-style:none;
}
#who ul.for li+li{margin-top:2px}
#who ul.for li::before,
#who .notfor-line::before{
  content:"";
  position:absolute;
  left:0;
  top:.95em;
  width:16px;
  height:16px;
  transform:translateY(-50%);
  background-repeat:no-repeat;
  background-size:16px 16px;
  pointer-events:none;
}
#who ul.for li::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M2.8 8.2L6.2 11.6L13.2 4.2' stroke='%23c8b896' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
#who .notfor-line::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4 4L12 12M12 4L4 12' stroke='%23b35c5c' stroke-width='1.85' stroke-linecap='round'/></svg>");
}

/* What coaching includes: two tiles from the existing sentences only. */
#coaching .coaching-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
  margin-top:40px;
}
#coaching .coaching-card{
  background:#1a1914;
  border:1px solid rgba(200,184,150,.28);
  border-top:3px solid #c8b896;
  padding:32px 28px 30px;
}
#coaching .coaching-num{
  display:block;
  font-family:Anton,sans-serif;
  font-weight:400;
  font-size:2rem;
  line-height:1;
  letter-spacing:.12em;
  color:#c8b896;
  margin:0 0 16px;
}
#coaching .coaching-card p{
  font-family:'DM Sans',sans-serif;
  font-size:1.08rem;
  line-height:1.65;
  color:#d8d4ca;
  margin:0;
}
@media (max-width:700px){
  #coaching .coaching-grid{
    grid-template-columns:1fr;
    gap:18px;
    margin-top:28px;
  }
  #coaching .coaching-card{padding:26px 22px 24px}
}
@media (prefers-reduced-motion:no-preference){
  #coaching .coaching-card{
    opacity:0;
    transform:translateY(14px);
    transition:opacity .6s cubic-bezier(.45,0,.55,1),transform .6s cubic-bezier(.45,0,.55,1);
  }
  #coaching .coaching-card:nth-child(2){transition-delay:.12s}
  #coaching .coaching-card.is-in{
    opacity:1;
    transform:none;
  }
}
@media (prefers-reduced-motion:reduce){
  #coaching .coaching-card{
    opacity:1;
    transform:none;
    transition:none;
  }
}

/* Previous episodes list (replaces the homepage email opt-in and "Next one back"). */
#podcast .prev-ep-heading{
  font-family:Anton,sans-serif;
  font-weight:400;
  letter-spacing:.5px;
  text-transform:uppercase;
  font-size:1.15rem;
  color:var(--off,#f3f0e8);
  margin:28px 0 10px;
}
#podcast ul.prev-eps{
  list-style:none;
  padding:0;
  margin:0;
}
#podcast ul.prev-eps li{
  padding:9px 0;
  border-bottom:1px solid #222;
}
#podcast ul.prev-eps a{
  color:var(--gold,#c8b896);
  text-decoration:none;
}
#podcast ul.prev-eps a:hover{color:#e2d4b8}
@media (max-width:700px){
  #podcast .prev-ep-heading,
  #podcast ul.prev-eps{text-align:center}
}
