/* =====================================================================
   IPH 26/27 Market Report page  –  iph-market-report.css  (v1.0, 15 Nov 2026)
   Everything is scoped under .iphmr so it can't clash with the theme.
   The site header and footer are NOT in here: use the live ones.
   Font: Poppins (already loaded by the site header).
   ===================================================================== */

.iphmr {
  --mr-navy: #0D1430;
  --mr-ink: #1b1f26;
  --mr-ink-soft: #4f5762;
  --mr-orange: #EC7746;
  --mr-orange-hi: #F9A27F;
  --mr-orange-mid: #EE764F;
  --mr-orange-lo: #D45A33;
  --mr-orange-text: #C2552A;      /* orange that passes 4.5:1 on light grey */
  --mr-orange-soft: #F39A72;
  --mr-line: rgba(58, 68, 86, .22);
  --mr-cream: #F6F4F1;
  --mr-max: 1296px;
  --mr-bg-img: url("../assets/iph-paper-emboss-1920.jpg");

  position: relative;
  isolation: isolate;               /* keeps the fixed background behind this page only */
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--mr-ink);
  -webkit-font-smoothing: antialiased;
}
.iphmr *, .iphmr *::before, .iphmr *::after { box-sizing: border-box; }
.iphmr h1, .iphmr h2, .iphmr h3, .iphmr p, .iphmr ul { margin: 0; }
.iphmr img { max-width: 100%; display: block; }

/* ---------- Fixed background (paper emboss) ----------
   A real fixed layer instead of background-attachment:fixed, which iOS Safari ignores.
   Everything on the page scrolls over it; the opaque sections below the hero cover it. */
.iphmr-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #eef0f2 var(--mr-bg-img) center center / cover no-repeat;
  pointer-events: none;
}

.iphmr-wrap { max-width: var(--mr-max); margin: 0 auto; }
.iphmr-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--mr-orange-text);
}

/* ---------- HERO ---------- */
.iphmr-hero {
  position: relative;
  padding: 148px 24px 96px;          /* 148px top clears the absolutely-positioned site header */
}
.iphmr-hero__grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.iphmr-hero__copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.iphmr-crumb { display: flex; gap: 8px; font-size: 13px; color: var(--mr-ink-soft); }
.iphmr-crumb a { color: var(--mr-ink-soft); text-decoration: none; }
.iphmr-crumb a:hover { color: var(--mr-orange-text); }
.iphmr-crumb [aria-current] { color: var(--mr-ink); font-weight: 500; }

.iphmr-titles { display: flex; flex-direction: column; gap: 18px; }
.iphmr-h1 { font-size: 58px; line-height: 1.06; font-weight: 700; letter-spacing: -1px; color: var(--mr-ink); }
.iphmr-h1 span { color: var(--mr-orange-lo); }
.iphmr-sub { font-size: 22px; font-weight: 500; color: var(--mr-ink); }
.iphmr-lead { max-width: 600px; font-size: 17px; line-height: 1.65; color: var(--mr-ink-soft); }

.iphmr-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.iphmr-chips li {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(58, 68, 86, .14);
  box-shadow: 2px 3px 7px -3px rgba(58, 68, 86, .18);
  font-size: 14px; font-weight: 500;
}
.iphmr-chips svg { color: var(--mr-orange-lo); flex-shrink: 0; }

/* Report visual: inside pages behind, cover in front */
.iphmr-visual { position: relative; height: 430px; margin-top: 12px; }
.iphmr-visual__glow {
  position: absolute; left: 180px; top: 60px; width: 420px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 119, 70, .22), rgba(236, 119, 70, 0)); filter: blur(10px);
}
.iphmr-visual__spread {
  position: absolute; left: 230px; top: 30px; width: 470px; height: auto; border-radius: 6px;
  box-shadow: 0 30px 60px rgba(27, 31, 38, .28); transform: rotate(3deg);
}
.iphmr-visual__cover {
  position: absolute; left: 0; top: 0; width: 290px; height: auto; border-radius: 6px;
  box-shadow: 0 34px 70px rgba(13, 20, 48, .38); transform: rotate(-3deg);
}

/* ---------- FORM CARD (light glass) ---------- */
.iphmr-card {
  flex: 1 1 420px; max-width: 480px; min-width: 0; padding: 32px; border-radius: 24px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.55) 26%, rgba(255,255,255,0) 55%),
    linear-gradient(160deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.66) 45%, rgba(240,244,249,.78) 100%);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: -8px -8px 22px -4px rgba(255,255,255,.85), 2px 3px 4px -1px rgba(58,68,86,.16),
              8px 11px 10px rgba(58,68,86,.18), 26px 34px 40px rgba(58,68,86,.22);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  scroll-margin-top: 110px;           /* so "Get the free report" anchor doesn't land under the header */
}
.iphmr-form { display: flex; flex-direction: column; gap: 18px; }
.iphmr-form[hidden], .iphmr-success[hidden] { display: none; }
.iphmr-card h2 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.iphmr-card__intro { display: flex; flex-direction: column; gap: 6px; }
.iphmr-card__intro p { font-size: 14.5px; line-height: 1.55; color: var(--mr-ink-soft); }

.iphmr-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.iphmr-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.iphmr-label { font-size: 13.5px; font-weight: 600; color: var(--mr-ink); }
.iphmr-label small { font-size: inherit; font-weight: 400; color: var(--mr-ink-soft); }

.iphmr-input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--mr-line); background: #fff; color: var(--mr-ink);
  font: inherit; font-size: 15px;   /* 15px+ stops iOS zooming on focus */
  box-shadow: inset 1px 1px 0 #fff, 0 1px 2px rgba(58, 68, 86, .06);
  -webkit-appearance: none; appearance: none;
}
select.iphmr-input {
  padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234f5762' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat;
}
select.iphmr-input:invalid { color: #7d8591; }
.iphmr-input::placeholder { color: #7d8591; }
.iphmr-input:focus { outline: none; border-color: var(--mr-orange-mid); box-shadow: 0 0 0 3px rgba(236, 119, 70, .25); }
.iphmr-field.is-invalid .iphmr-input { border-color: #C2362B; box-shadow: 0 0 0 3px rgba(194, 54, 43, .14); }
.iphmr-error { display: none; font-size: 12.5px; color: #B3261E; }
.iphmr-field.is-invalid .iphmr-error { display: block; }

.iphmr-tel { display: flex; gap: 8px; }
.iphmr-tel__prefix {
  display: flex; align-items: center; height: 48px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--mr-line); background: #F4F6F8; font-size: 15px; color: var(--mr-ink-soft);
}

/* Edition toggle (radio buttons styled as a segmented control) */
.iphmr-edition { margin: 0; padding: 0; border: 0; min-width: 0; }
.iphmr-edition legend { padding: 0; margin-bottom: 8px; }
.iphmr-seg {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 5px;
  border-radius: 14px; background: #E6E9EE; border: 1px solid rgba(58, 68, 86, .10);
}
.iphmr-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.iphmr-seg label {
  display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--mr-ink-soft); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.iphmr-seg label:hover { color: var(--mr-ink); }
.iphmr-seg input:checked + label {
  background: linear-gradient(145deg, var(--mr-orange-hi) 0%, var(--mr-orange-mid) 45%, var(--mr-orange-lo) 100%);
  color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(236, 119, 70, .35);
}
.iphmr-seg input:focus-visible + label { outline: 2px solid var(--mr-orange-lo); outline-offset: 2px; }

.iphmr-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--mr-ink-soft); cursor: pointer; }
.iphmr-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--mr-orange); flex-shrink: 0; }

/* Honeypot: hidden from people, visible to bots */
.iphmr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.iphmr-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 30px;
  border: 0; border-radius: 14px; background: var(--mr-orange); color: #fff !important;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 26px rgba(236, 119, 70, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: background .15s ease, transform .15s ease;
}
.iphmr-btn:hover { background: #F0855A; }
.iphmr-btn:active { transform: translateY(1px); }
.iphmr-btn[disabled] { opacity: .7; cursor: progress; }
.iphmr-btn--ghost {
  height: 48px; background: rgba(255, 255, 255, .7); color: var(--mr-ink) !important;
  border: 1px solid rgba(58, 68, 86, .25); box-shadow: none; font-size: 14.5px; font-weight: 500;
}
.iphmr-btn--ghost:hover { background: #fff; }
.iphmr-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: iphmr-spin .8s linear infinite; display: none; }
.iphmr-btn.is-loading .iphmr-spin { display: block; }
.iphmr-btn.is-loading .iphmr-btn__ico { display: none; }
@keyframes iphmr-spin { to { transform: rotate(360deg); } }

.iphmr-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--mr-ink-soft); text-align: center; }
.iphmr-privacy a { color: var(--mr-orange-text); }
.iphmr-formerror { display: none; padding: 12px 14px; border-radius: 12px; background: #FDECEA; color: #8C1D18; font-size: 13.5px; line-height: 1.5; }
.iphmr-formerror.is-shown { display: block; }

/* Success state */
.iphmr-success { display: flex; flex-direction: column; gap: 22px; }
.iphmr-success__tick { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: rgba(236, 119, 70, .16); color: var(--mr-orange-lo); }
.iphmr-success p { font-size: 15px; line-height: 1.6; color: var(--mr-ink-soft); }
.iphmr-success b { color: var(--mr-ink); font-weight: 600; word-break: break-word; }
.iphmr-upsell { margin-top: 6px; padding-top: 22px; border-top: 1px solid rgba(58, 68, 86, .14); display: flex; flex-direction: column; gap: 8px; }
.iphmr-upsell p { font-size: 14.5px; }
.iphmr-upsell a { font-size: 14.5px; font-weight: 600; color: var(--mr-orange-text); text-decoration: none; }
.iphmr-upsell a:hover { text-decoration: underline; }

/* ---------- WHO IT'S FOR ---------- */
.iphmr-who { background: var(--mr-cream); color: var(--mr-navy); padding: 96px 24px; }
.iphmr-who .iphmr-wrap { display: flex; flex-direction: column; gap: 48px; }
.iphmr-who__head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.iphmr-h2 { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -.5px; }
.iphmr-who__head p:last-child { font-size: 17px; line-height: 1.65; color: #4A5068; }
.iphmr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.iphmr-audience {
  display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 22px;
  background: #fff; border: 1px solid #E6E2DC; transition: transform .2s ease, box-shadow .2s ease;
}
.iphmr-audience:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(13, 20, 48, .12); }
.iphmr-audience__ico { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--mr-navy); color: var(--mr-orange-soft); }
.iphmr-audience h3 { font-size: 22px; font-weight: 700; }
.iphmr-audience p { font-size: 15.5px; line-height: 1.65; color: #4A5068; }

/* ---------- CLOSING BAND ---------- */
.iphmr-cta {
  background: radial-gradient(700px 360px at 50% 0%, rgba(236, 119, 70, .18), rgba(236, 119, 70, 0) 70%), var(--mr-navy);
  color: #fff; padding: 88px 24px;
}
.iphmr-cta__inner { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.iphmr-cta h2 { font-size: 38px; line-height: 1.2; font-weight: 700; }
.iphmr-cta p { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .78); }
.iphmr-cta small { font-size: 14px; color: rgba(255, 255, 255, .7); }
.iphmr-cta small a { color: var(--mr-orange-soft); }

/* ---------- RESPONSIVE (first pass; full mobile design to follow) ---------- */
@media (max-width: 1040px) {
  .iphmr-hero { padding: 112px 16px 64px; }   /* mobile header is shorter */
  .iphmr-hero__grid { gap: 40px; }
  .iphmr-card { max-width: none; }
}
@media (max-width: 640px) {
  .iphmr-h1 { font-size: 38px; }
  .iphmr-sub { font-size: 18px; }
  .iphmr-lead { font-size: 16px; }
  .iphmr-visual { height: auto; display: flex; justify-content: center; }
  .iphmr .iphmr-visual__glow, .iphmr .iphmr-visual__spread { display: none; }
  .iphmr-visual__cover { position: static; width: 62%; max-width: 260px; transform: none; }
  .iphmr-card { padding: 24px 18px; }
  .iphmr-row2 { grid-template-columns: minmax(0, 1fr); }
  .iphmr-who, .iphmr-cta { padding: 64px 16px; }
  .iphmr-h2, .iphmr-cta h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .iphmr *, .iphmr *::before, .iphmr *::after { transition: none !important; animation: none !important; }
}

/* ---------- IPH fix (18 Nov 2026) ----------
   The fixed paper layer lives inside .iphmr (isolation:isolate), which is painted after the
   theme's static <footer> and covered it. Lift the footer above the paper. */
.iphmr ~ footer,
body:has(.iphmr) footer { position: relative; z-index: 1; }