/* ==========================================================================
   Installer Edition sales page (/ppf/installer/) — page layer on home-b.css
   v1.3.5 — mirrors the /ppf/ Funnel B design language (tokens, φ spacing).
   Loaded only on the installer page (ppf_apple_is_installer_page()).
   Waitlist overrides are specificity-raised (body.ppf-installer-page …)
   because tvp-sample-wall prints its <style> later in wp_head.
   ========================================================================== */

/* Display type — same Mattone stack the funnel uses on /ppf/ */
body.ppf-installer-page .hb-display,
body.ppf-installer-page .hb-h2,
body.ppf-installer-page .ie-part h3,
body.ppf-installer-page .ppf-wall-card h3 {
  font-family: 'Mattone', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
}

/* Hero — still-image treatment (flagship hero is video) */
body.ppf-installer-page .hb-hero-img {
  filter: saturate(0.92) contrast(1.05) brightness(0.94);
}
body.ppf-installer-page .hb-display { max-width: 13.5ch; }

/* Anchor targets clear the sticky topbar */
body.ppf-installer-page #samples,
body.ppf-installer-page #curriculum,
body.ppf-installer-page #ppf-installer-waitlist { scroll-margin-top: 84px; }

/* ---- Curriculum part cards ---- */
.ie-parts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hb-space-4);
  margin-top: var(--hb-space-6);
  align-items: start;
}
@media (min-width: 760px) {
  .ie-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ie-part {
  background: var(--hb-card);
  border: 1px solid var(--hb-line);
  border-radius: calc(8px * var(--phi) * var(--phi)); /* 21 */
  padding: 26px 24px 20px;
  box-shadow: var(--hb-shadow);
}
.ie-part-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}
.ie-part-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-gold);
}
.ie-part-range {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--hb-mute);
  white-space: nowrap;
}
.ie-part h3 {
  font-size: 24px;
  letter-spacing: 0.01em;
  color: var(--hb-porcelain);
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hb-line);
}
.ie-lessons { list-style: none; margin: 0; padding: 0; }
.ie-lessons li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 7px 0;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--hb-silver);
  border-bottom: 1px solid rgba(255,255,255,0.045);
}
.ie-lessons li:last-child { border-bottom: 0; }
.ie-lessons li span {
  flex: 0 0 auto;
  min-width: 1.9em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hb-link);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---- Sample cards: video fills the card top like flagship posters ---- */
.ie-sample video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
}

/* ---- Honest callout ---- */
.ie-honest {
  border: 1px solid var(--hb-line-strong);
  border-left: 3px solid var(--hb-gold);
  border-radius: calc(8px * var(--phi) * var(--phi));
  background: linear-gradient(145deg, rgba(253,181,33,.07), transparent 46%), var(--hb-card);
  padding: clamp(26px, 4vw, 40px);
}
.ie-honest .hb-h2 { margin-bottom: 14px; }
.ie-honest .hb-body { margin: 0; }

/* ---- Waitlist card + form (shortcode markup unchanged) ---- */
body.ppf-installer-page .ppf-wall { margin: var(--hb-space-5) 0 0; }
body.ppf-installer-page .ppf-wall-card {
  background:
    linear-gradient(145deg, rgba(0,113,227,.16), transparent 46%),
    var(--hb-elev);
  border: 1px solid var(--hb-line-strong);
  border-radius: 26px;
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--hb-shadow);
}
body.ppf-installer-page .ppf-wall-card h3 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  letter-spacing: 0.01em;
  margin: 0.25em 0 0.35em;
}
body.ppf-installer-page .ppf-wall-card p { color: var(--hb-silver); }
body.ppf-installer-page #ppf-waitlist-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto;
}
body.ppf-installer-page #ppf-waitlist-form input[type="text"],
body.ppf-installer-page #ppf-waitlist-form input[type="email"] {
  flex: 1 1 180px;
  min-width: 0;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid var(--hb-line-strong);
  background: #101013;
  color: var(--hb-porcelain);
  font-size: 1rem;
  font-family: var(--hb-font);
}
body.ppf-installer-page #ppf-waitlist-form input::placeholder { color: var(--hb-mute); }
body.ppf-installer-page #ppf-waitlist-form input:focus {
  outline: 2px solid var(--hb-blue);
  outline-offset: 1px;
  border-color: var(--hb-blue);
}
body.ppf-installer-page #ppf-waitlist-form button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 14px 30px;
  border: 2px solid var(--hb-btn);
  border-radius: var(--hb-pill);
  background: var(--hb-btn);
  color: #fff;
  font-family: var(--hb-font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0,113,227,.32);
  transition: background .2s ease, border-color .2s ease, transform .12s ease;
}
body.ppf-installer-page #ppf-waitlist-form button:hover {
  background: var(--hb-btn-hover);
  border-color: var(--hb-btn-hover);
  transform: translateY(-1px);
}
body.ppf-installer-page #ppf-waitlist-form button:disabled { opacity: .6; cursor: wait; transform: none; }
body.ppf-installer-page .ppf-wall.ppf-done .ppf-wall-card { border-color: rgba(126,226,168,.4); }

@media (max-width: 480px) {
  body.ppf-installer-page #ppf-waitlist-form button { width: 100%; }
  .ie-part { padding: 22px 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.ppf-installer-page #ppf-waitlist-form button { transition: none !important; }
}
