/* /iress: Subcontext in IRESS's The Exchange, for Exchange users. In the
   IRESS lander's look (iress_launch.css): navy with red rules over the
   points, the IRESS × Subcontext lockup, the film beside the pitch, the
   steps and the way in on bone. brand.css loads first. */

  .ix-hero h3, .ix-why h3, .ix-steps h3, .ix-partnership h3, .ix-features h3 {
    font-family: var(--display); font-size: 17px; line-height: 1.3; font-weight: 700;
    letter-spacing: -0.02em; text-wrap: balance;
  }
  .ix-why .eyebrow, .ix-steps .eyebrow, .ix-partnership .eyebrow, .ix-start .eyebrow, .ix-features .eyebrow { margin-bottom: 20px; }
  .ix-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
  .ix-body { margin-top: 18px; max-width: 36em; font-size: 17px; line-height: 1.6; color: rgba(242, 237, 226, 0.82); }
  .light .ix-body { color: rgba(12, 34, 64, 0.78); }
  .ix-icon {
    flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(242, 237, 226, 0.08); border: 1px solid var(--hairline-dark); color: var(--bone);
  }

  /* ─── Hero: the lockup and pitch beside the film ─── */
  .ix-hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(28px, 5vw, 64px); align-items: center;
  }
  .ix-lockup {
    display: inline-flex; align-items: center; gap: 14px; margin-bottom: clamp(24px, 3vw, 36px);
    font-size: 20px;
  }
  /* IRESS's mark in its teal, its lettering in the page's bone. */
  .ix-iress-logo { display: block; height: 48px; width: auto; color: var(--bone); }
  .ix-x { color: var(--mute-dark); font-size: 18px; }
  .ix-hero .lede { margin-top: 20px; max-width: 34em; }
  .ix-film { margin: 0; }
  .ix-film figcaption { margin-top: 12px; font-size: 14px; color: var(--mute-dark); }
  /* The poster with a play button, opening the film in a modal. */
  .ix-film-thumb {
    position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-soft);
    border-radius: 14px; border: 1px solid var(--hairline-dark); box-shadow: 0 30px 80px rgba(3, 10, 24, 0.5);
  }
  .ix-film-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease, opacity 0.3s ease; }
  .ix-film-thumb:hover img { transform: scale(1.02); opacity: 0.9; }
  .ix-film-thumb:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }
  .ix-play {
    position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
    display: grid; place-items: center; color: #fff; background: var(--signal);
    box-shadow: 0 10px 30px rgba(229, 39, 60, 0.45); transition: transform 0.15s ease;
  }
  .ix-film-thumb:hover .ix-play { transform: scale(1.06); }
  .ix-play svg { margin-left: 3px; }
  .ix-film-modal { border: 0; padding: 0; background: transparent; margin: auto; width: min(92vw, 1100px); max-width: none; overflow: visible; }
  .ix-film-modal::backdrop { background: rgba(10, 24, 50, 0.85); }
  .ix-film-modal video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5); }
  .ix-film-close {
    position: absolute; top: -46px; right: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; color: var(--bone);
    border: 1px solid rgba(242, 237, 226, 0.4); background: transparent;
  }

  /* ─── Why: four benefits under red rules ─── */
  .ix-why .h2 { max-width: 22em; }
  .ix-points { margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .ix-points article { border-top: 2px solid var(--signal); padding-top: 18px; }
  .ix-points p { margin-top: 10px; font-size: 15px; color: rgba(242, 237, 226, 0.82); }

  /* ─── How it works: the quote's journey, on bone. A band over the steps
         shows where each stretch happens (its segments span their steps);
         under it, six steps on a dotted path with a dot travelling along
         it, left to right. ─── */
  .ix-steps .h2 { max-width: 22em; }
  .ix-journey { margin-top: 40px; --exchange: #3B1E4A; --exchange-soft: #EFE7F3; --subcontext: var(--ink); --subcontext-soft: #E4EAF3; }
  .ix-journey-band { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .ix-journey-band li { display: flex; justify-content: center; }
  .ix-journey-band li[data-span="2"] { grid-column: span 2; }
  .ix-journey-band li[data-span="3"] { grid-column: span 3; }
  .ix-journey-band span {
    width: 100%; text-align: center; padding: 10px 14px; border-radius: 999px;
    font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: -0.01em;
    color: #fff; background: var(--subcontext);
  }
  .ix-journey-band li[data-place="exchange"] span { background: var(--exchange); }

  .ix-journey-steps {
    list-style: none; position: relative; margin-top: 28px;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
  }
  /* The path through the icons, and the dot along it. */
  .ix-journey-steps::before, .ix-journey-steps::after { content: ""; position: absolute; }
  .ix-journey-steps::before {
    top: 35px; left: calc(100% / 12); right: calc(100% / 12); height: 3px; border-radius: 3px;
    background: repeating-linear-gradient(to right, rgba(12, 34, 64, 0.25) 0 8px, transparent 8px 16px);
  }
  .ix-journey-steps::after {
    top: 30px; left: calc(100% / 12); width: 13px; height: 13px; margin-left: -6px; border-radius: 50%;
    background: var(--signal); box-shadow: 0 0 0 5px rgba(229, 39, 60, 0.18);
    animation: ix-journey-travel 9s ease-in-out infinite;
  }
  @keyframes ix-journey-travel {
    0% { left: calc(100% / 12); opacity: 0; } 4% { opacity: 1; }
    94% { opacity: 1; } 100% { left: calc(100% - 100% / 12); opacity: 0; }
  }
  .ix-journey-step { position: relative; z-index: 1; text-align: center; color: var(--ink); }
  .ix-journey-icon {
    position: relative; width: 72px; height: 72px; margin: 0 auto; border-radius: 50%;
    display: grid; place-items: center; background: var(--subcontext-soft); color: var(--subcontext);
    border: 3px solid var(--bone-soft); box-shadow: 0 10px 26px rgba(12, 34, 64, 0.12);
  }
  .ix-journey-step[data-place="exchange"] .ix-journey-icon { background: var(--exchange-soft); color: var(--exchange); }
  /* The moment that matters most to an adviser: their client is ready. */
  .ix-journey-step:nth-child(4) .ix-journey-icon { background: var(--signal); color: #fff; }
  .ix-journey-n {
    position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; color: var(--ink);
    font-family: var(--display); font-weight: 800; font-size: 12px; box-shadow: 0 2px 6px rgba(12, 34, 64, 0.18);
  }
  .ix-journey-step h3 { margin-top: 16px; }
  .ix-journey-step p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: rgba(12, 34, 64, 0.75); }
  /* Where a step happens, in words: the band's job on a wide screen (and
     read out to screen readers there), each step's own on a phone. */
  .ix-journey-step .ix-journey-place {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }

  @media (prefers-reduced-motion: reduce) {
    .ix-journey-steps::after { display: none; }
  }

  /* ─── The partnership, beside the safeguards ─── */
  .ix-partnership-grid {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px); align-items: start;
  }
  .ix-safeguards { list-style: none; display: grid; gap: 14px; }
  .ix-safeguards li {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px;
    border: 1px solid var(--hairline-dark); border-radius: 14px; padding: 18px 20px;
    background: rgba(16, 41, 76, 0.72);
  }
  .ix-safeguards p { margin-top: 4px; font-size: 14px; color: rgba(242, 237, 226, 0.82); }

  /* ─── Start: the way in, beside a picture of The Exchange's panel ─── */
  .ix-start-grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px); align-items: center;
  }
  .ix-start .ix-body strong { color: var(--ink); }
  .ix-panel { margin: 0; }
  .ix-panel-tab {
    display: inline-block; padding: 8px 14px; border-radius: 10px 10px 0 0; background: #fff;
    border-top: 3px solid #3B1E4A; font-size: 14px; color: #333;
  }
  .ix-panel-body {
    background: #fff; border-radius: 0 14px 14px 14px; padding: 24px; color: #333;
    box-shadow: 0 24px 60px rgba(12, 34, 64, 0.16);
  }
  .ix-panel-brand { padding-bottom: 14px; border-bottom: 1px solid #e3e3e3; font-size: 22px; color: var(--ink); }
  .ix-panel-title { margin-top: 16px; font-weight: 700; font-size: 15px; }
  .ix-panel-text { margin-top: 6px; font-size: 14px; }
  .ix-panel-proceed {
    display: inline-block; margin-top: 18px; padding: 8px 16px; border-radius: 4px;
    background: #B5123A; color: #fff; font-size: 14px;
  }
  .ix-panel figcaption { margin-top: 12px; font-size: 14px; color: #596579; }

  /* ─── A full account: the features ─── */
  .ix-features .h2 { max-width: 22em; }
  .ix-feature-list { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .ix-feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .ix-feature p { margin-top: 6px; font-size: 15px; color: rgba(242, 237, 226, 0.82); }
  .ix-feature-link {
    margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--bone); text-decoration: none;
    border-bottom: 1px solid rgba(242, 237, 226, 0.35); padding-bottom: 1px;
  }
  .ix-feature-link:hover { border-color: var(--bone); }

  /* ─── FAQ: native details/summary, as on /agentic-channels ─── */
  .ix-faq .eyebrow { margin-bottom: 20px; }
  .ix-faq-list { margin-top: clamp(20px, 3vw, 32px); max-width: 860px; border-top: 1px solid var(--hairline-light); }
  .ix-faq-item { border-bottom: 1px solid var(--hairline-light); }
  .ix-faq-item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 0; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.4; color: var(--ink);
  }
  .ix-faq-item summary::-webkit-details-marker { display: none; }
  .ix-faq-item summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 20px; color: var(--signal); }
  .ix-faq-item[open] summary::after { content: "−"; }
  .ix-faq-item summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; border-radius: 4px; }
  .ix-faq-item p { margin: 0 0 20px; max-width: 46em; font-size: 15px; line-height: 1.7; color: rgba(12, 34, 64, 0.82); }
  .ix-faq-item p a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

  /* ─── Questions ─── */
  .ix-close { border-top: 1px solid var(--hairline-dark); }
  .ix-close p { margin-top: 12px; max-width: 40em; color: rgba(242, 237, 226, 0.82); }

  /* ─── Narrow screens ─── */
  @media (max-width: 960px) {
    .ix-hero-grid, .ix-partnership-grid, .ix-start-grid { grid-template-columns: minmax(0, 1fr); }
    .ix-points, .ix-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* The journey down the page: the path runs through the icons, and
       each step says where it happens. */
    .ix-journey-band { display: none; }
    .ix-journey-steps { margin-top: 8px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ix-journey-steps::before {
      top: 36px; bottom: 36px; left: 35px; right: auto; width: 3px; height: auto;
      background: repeating-linear-gradient(to bottom, rgba(12, 34, 64, 0.25) 0 8px, transparent 8px 16px);
    }
    .ix-journey-steps::after { left: 30px; margin-left: 0; animation-name: ix-journey-down; }
    @keyframes ix-journey-down {
      0% { top: 30px; opacity: 0; } 4% { opacity: 1; } 94% { opacity: 1; } 100% { top: calc(100% - 42px); opacity: 0; }
    }
    .ix-journey-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; text-align: left; }
    .ix-journey-icon { margin: 0; }
    .ix-journey-step h3 { margin-top: 2px; }
    .ix-journey-step .ix-journey-place {
      position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal;
      margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #3B1E4A;
    }
    .ix-journey-step[data-place="subcontext"] .ix-journey-place { color: var(--ink); }
  }
  @media (max-width: 560px) {
    .ix-points, .ix-feature-list { grid-template-columns: minmax(0, 1fr); }
  }
