/* /agentic-channels page styles. brand.css and convo.css must load first
   (convo.css draws the partner-system conversation and the closing CTA).
   The page's sections, its copy-beside-mockup grid, the assistant and
   WebMCP mockups, the surface cards, record ledger, setup steps, FAQ,
   film and AI Ready Index callout. */

  /* ── Section copy ── */
  .aisurf-band { padding: clamp(48px, 6vw, 88px) 0; }
  .aisurf-copy {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.75;
    max-width: 62ch;
  }
  .aisurf-copy + .aisurf-copy { margin-top: 16px; }
  .light .aisurf-copy { color: rgba(12, 34, 64, 0.82); }
  .aisurf-band .h2 { margin-bottom: clamp(16px, 2vw, 24px); }
  .aisurf-band .eyebrow + .h2 { margin-top: 20px; }

  /* ── Copy beside a mockup ── */
  .aisurf-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(36px, 4vw, 56px);
    align-items: center;
  }
  @media (min-width: 940px) {
    .aisurf-split { grid-template-columns: 1.15fr 1fr; gap: clamp(56px, 6vw, 96px); }
    .aisurf-split-flip { grid-template-columns: 1fr 1.15fr; }
    .aisurf-split-flip > figure,
    .aisurf-split-flip > .aisurf-mock { order: -1; }
  }

  /* ── Shared mockup caption ── */
  .mock-caption {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(242, 237, 226, 0.5);
    margin: 12px 0 0;
    text-align: center;
  }
  .light .mock-caption { color: var(--mute-light); }
  .aisurf-mock { margin: 0; }
  .aisurf-mock .xchat { margin: 0 auto; }

  /* ── Assistant chat mockup (ChatGPT, Claude) ── */
  .gptmock { margin: 0; }
  .gptmock-panel {
    background: #fff;
    color: #0d0d0d;
    border: 1px solid rgba(12, 34, 64, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px -28px rgba(12, 34, 64, 0.35);
  }
  .gptmock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  }
  .gptmock-title { font-weight: 600; font-size: 14px; }
  .gptmock-app-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 11px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: #444;
    background: #f7f7f8;
  }
  .gptmock-app-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--signal); }
  .gptmock-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 13px;
    line-height: 1.6;
  }
  .gptmock-user {
    align-self: flex-end;
    max-width: 80%;
    background: #f4f4f4;
    border-radius: 18px 18px 4px 18px;
    padding: 9px 14px;
  }
  .gptmock-assistant { display: flex; flex-direction: column; gap: 10px; }
  .gptmock-assistant p { margin: 0; }
  .gptmock-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 14px 16px;
  }
  .gptmock-card-head {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 8px;
  }
  .gptmock-card-premium {
    font-family: var(--display);
    font-weight: 800;
    font-size: 30px;
    line-height: 1;
    color: var(--ink);
  }
  .gptmock-card-premium span { font-size: 14px; font-weight: 600; color: #8a8a8a; }
  .gptmock-card-meta { margin-top: 6px; font-size: 12px; color: #666; }
  .gptmock-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .gptmock-btn {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--signal);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
  }
  .gptmock-btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid rgba(12, 34, 64, 0.25);
    font-weight: 600;
  }
  .gptmock-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 18px 18px;
    padding: 10px 8px 10px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    font-size: 13px;
    color: #9a9a9a;
  }
  .gptmock-send {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0d0d0d;
    color: #fff;
    display: grid;
    place-content: center;
    font-size: 14px;
  }

  /* ── WebMCP split-browser mockup ── */
  .webmcpmock { margin: 0; }
  .webmcpmock-window {
    background: #fff;
    border: 1px solid rgba(242, 237, 226, 0.2);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
  }
  .webmcpmock-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #ececee;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  .webmcpmock-dot { width: 10px; height: 10px; border-radius: 50%; background: #c9c9cd; }
  .webmcpmock-url {
    margin-left: 10px;
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 4px 12px;
    font-family: var(--mono);
    font-size: 11px;
    color: #555;
  }
  .webmcpmock-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .webmcpmock-human { padding: 18px; }
  .webmcpmock-agent {
    padding: 18px;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .webmcpmock-side-label {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 12px;
  }
  .webmcpmock-agent .webmcpmock-side-label { color: rgba(242, 237, 226, 0.55); margin-bottom: 4px; }
  .webmcpmock-field {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
  }
  .webmcpmock-field-label {
    display: block;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a8a8a;
  }
  .webmcpmock-field-value { display: block; font-size: 13px; font-weight: 600; color: #222; }
  .webmcpmock-cta {
    background: var(--signal);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 9px 0;
    font-size: 12.5px;
    font-weight: 700;
  }
  .webmcpmock-tool {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.5;
    color: var(--bone);
    background: rgba(242, 237, 226, 0.08);
    border: 1px solid rgba(242, 237, 226, 0.14);
    border-radius: 8px;
    padding: 6px 10px;
  }
  .webmcpmock-result {
    margin-top: auto;
    padding-top: 8px;
    font-family: var(--mono);
    font-size: 11px;
    color: #42E07F;
  }
  @media (max-width: 560px) {
    .webmcpmock-split { grid-template-columns: 1fr; }
    .webmcpmock-result { margin-top: 4px; }
  }



  /* ── Hero ── */
  .aisurf-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
  .aisurf-hero .eyebrow { margin-bottom: clamp(24px, 3vw, 36px); }
  .aisurf-hero .h1 { max-width: 26ch; margin-bottom: clamp(24px, 3vw, 36px); }
  .aisurf-hero .lede { color: var(--mute-dark); max-width: 72ch; }

  /* ── Three surface cards ── */
  .aisurf-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(14px, 2vw, 20px);
    margin-top: clamp(32px, 4vw, 48px);
  }
  @media (min-width: 720px) { .aisurf-grid { grid-template-columns: repeat(3, 1fr); } }
  .aisurf-card {
    display: block;
    padding: 20px 22px 22px;
    border: 1px solid var(--hairline-dark);
    border-radius: 14px;
    background: var(--ink-soft);
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease, border-color 0.12s ease;
  }
  .aisurf-card:hover { transform: translateY(-2px); border-color: rgba(242, 237, 226, 0.4); }
  .aisurf-card-title {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .aisurf-card-copy { display: block; font-size: 13.5px; line-height: 1.6; color: var(--mute-dark); }
  .aisurf-card::after {
    content: "→";
    display: block;
    margin-top: 14px;
    font-family: var(--mono);
    color: var(--signal);
  }



  /* ── Dark section copy ── */
  .aisurf-band:not(.light) .aisurf-copy { color: var(--mute-dark); }



  /* ── Log ledger ── */
  .aisurf-ledger {
    margin: 0;
    background: var(--ink-soft);
    border: 1px solid var(--hairline-dark);
    border-radius: 18px;
    padding: 16px 18px 18px;
    font-family: var(--mono);
    font-size: 11.5px;
  }
  .aisurf-ledger-head {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 12px;
  }
  .aisurf-ledger-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--hairline-dark);
    color: var(--bone);
  }
  .aisurf-ledger-time { color: rgba(242, 237, 226, 0.5); }
  .aisurf-ledger-text { overflow-wrap: anywhere; }
  @media (max-width: 480px) {
    .aisurf-ledger-row { grid-template-columns: 1fr; gap: 2px; }
    .aisurf-ledger-time { display: none; }
  }

  /* ── Bulleted list ── */
  .aisurf-list {
    margin: clamp(18px, 2.5vw, 26px) 0;
    padding-left: 20px;
    max-width: 62ch;
    display: grid;
    gap: 10px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--mute-dark);
  }
  .aisurf-list strong { color: var(--bone); }


  /* ── Five-minute steps ── */
  .aisurf-steps {
    list-style: none;
    margin: clamp(24px, 3vw, 36px) 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  @media (min-width: 720px) { .aisurf-steps { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1040px) { .aisurf-steps { grid-template-columns: repeat(4, 1fr); } }
  .aisurf-step {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--hairline-dark);
    border-radius: 14px;
    background: var(--ink-soft);
  }
  .aisurf-step-num {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background: var(--signal);
    color: #fff;
    font-family: var(--display);
    font-weight: 800;
    font-size: 14px;
  }
  .aisurf-step-title {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
  }
  .aisurf-step-copy { display: block; font-size: 13.5px; line-height: 1.6; color: var(--mute-dark); }

  .aisurf-note {
    margin-top: clamp(18px, 2.5vw, 26px);
    max-width: 62ch;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--mute-dark);
  }

  /* ── Questions (native details/summary, no JS) ── */
  .aisurf-faq {
    width: 100%;
    margin-top: clamp(20px, 3vw, 32px);
    border-top: 1px solid var(--hairline-light);
  }
  .aisurf-faq-item { border-bottom: 1px solid var(--hairline-light); }
  .aisurf-faq-q {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.4;
    color: var(--ink);
  }
  .aisurf-faq-q::-webkit-details-marker { display: none; }
  .aisurf-faq-q::after {
    content: "+";
    flex: none;
    font-family: var(--mono);
    font-size: 18px;
    color: var(--signal);
  }
  .aisurf-faq-item[open] .aisurf-faq-q::after { content: "−"; }
  .aisurf-faq-a {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(12, 34, 64, 0.82);
  }

  /* Anchored sections land with air above them. */
  .aisurf-band[id] { scroll-margin-top: 24px; }


  /* ── The film: a clean poster with one play button (film#play) ── */
  .aisurf-film-head { max-width: 760px; margin: 0 auto; text-align: center; }
  .aisurf-film-frame {
    position: relative;
    max-width: 1120px;
    margin: clamp(36px, 4.5vw, 56px) auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: var(--ink-deep);
    border: 1px solid var(--hairline-dark);
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.7);
  }
  .aisurf-film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink-deep); }
  .aisurf-film-play { position: absolute; inset: 0; display: grid; place-items: center; background: transparent; border: 0; padding: 0; cursor: pointer; }
  .aisurf-film-play span {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 18px 40px -12px rgba(229, 39, 60, 0.6), 0 0 0 10px rgba(229, 39, 60, 0.18);
    transition: transform 0.15s;
  }
  .aisurf-film-play span::after { content: ""; margin-left: 7px; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
  .aisurf-film-play:hover span { transform: scale(1.06); }
  .aisurf-film-play:focus-visible span { outline: 3px solid var(--bone); outline-offset: 4px; }
  .aisurf-film-frame.playing .aisurf-film-play { display: none; }
  .aisurf-film-note { margin: 16px auto 0; max-width: 1120px; text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--mute-dark); }

  /* ── AI Ready Index callout ── */
  .aisurf-index-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 32px); }
  .aisurf-index-stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 16px);
    align-self: center;
  }
  .aisurf-index-stats > div {
    padding: clamp(20px, 2.4vw, 28px);
    background: #fff;
    border: 1px solid rgba(12, 34, 64, 0.1);
    border-radius: 14px;
    box-shadow: 0 14px 40px -30px rgba(12, 34, 64, 0.4);
  }
  .aisurf-index-stats dt {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(40px, 4.2vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
  }
  .aisurf-index-stats dd { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(12, 34, 64, 0.82); }
  .aisurf-index-stats .is-zero { background: var(--ink); border-color: var(--ink); }
  .aisurf-index-stats .is-zero dt { color: var(--signal); }
  .aisurf-index-stats .is-zero dd { color: rgba(242, 237, 226, 0.78); }

  /* ── ChatGPT and Claude, one over the other ── */
  .aisurf-duo { margin: 0; display: grid; }
  .aisurf-duo .gptmock-panel + .gptmock-panel { margin: -28px 0 0 clamp(24px, 8vw, 72px); position: relative; }
  .aisurf-duo .mock-caption { margin-top: 16px; }
