/* The "When you bring Octi in..." component: cards that switch the frame beside them,
   and the dashboard they light. Shared by the brokers and PEO pages, in its own sheet
   so the two cannot drift apart. */



  /* the three things a broker actually gets */
  .gains{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:46px}
  .gmk{display:block;width:64px;height:10px}
  .gmk svg{display:block;width:64px;height:10px;overflow:visible}

  @media (max-width:1080px){
    .gains,.terms{grid-template-columns:1fr}}

  /* ---------- 3 · the three, each opening into a part of its own ---------- */
  .gains{margin-top:46px}
  .gain{display:block;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;
        background:var(--panel);border:1px solid rgba(197,199,227,.14);border-radius:20px;
        padding:26px 28px;transition:border-color .22s ease,background .22s ease,
        transform .18s ease}
  .gain:hover{transform:translateY(-3px);border-color:rgba(255,122,61,.42)}
  .gain[aria-expanded="true"]{border-color:var(--accent);background:rgba(255,122,61,.10)}
  .gain h3{margin-top:16px;font-family:'Fraunces',Georgia,serif;font-weight:500;font-size:23px;
           letter-spacing:-.02em;line-height:1.24;color:var(--ink)}
  .gain .gmk{width:26px;overflow:hidden;transition:width .4s cubic-bezier(.2,.7,.2,1)}
  .gain:hover .gmk,.gain[aria-expanded="true"] .gmk{width:64px}

  .gpanel{display:grid;grid-template-columns:38% 1fr;gap:20px;align-items:center;margin-top:26px}
  .gbody{padding:8px 0}
  .gtext p{font-size:18px;line-height:1.6;color:var(--ink);max-width:46ch}
  .gtext .gkick{margin-top:26px;max-width:26ch;font-family:'Fraunces',Georgia,serif;font-weight:500;
         font-size:clamp(24px,2.4vw,31px);line-height:1.24;letter-spacing:-.024em;color:var(--ink)}
  .gtext .gkick em{font-style:normal;color:var(--accent)}
  .gtext{animation:gfade .38s cubic-bezier(.2,.7,.2,1)}
  @keyframes gfade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
  .bk-why .gmk{width:26px;overflow:hidden;transition:width .4s cubic-bezier(.2,.7,.2,1)}
  .bk-why li:hover .gmk{width:64px}
  /* The markers arrive one after another, so the list assembles instead of being there.
     The zero-width start is armed by script and only when the document can actually
     paint, because a marker parked at 0 by a frozen transition is not a missing
     animation, it is a missing mark. */
  html.motion .bk-why.armed .gmk{width:0}
  html.motion .bk-why.armed.in .gmk{width:26px}
  html.motion .bk-why.armed.in li:nth-child(1) .gmk{transition-delay:0ms}
  html.motion .bk-why.armed.in li:nth-child(2) .gmk{transition-delay:90ms}
  html.motion .bk-why.armed.in li:nth-child(3) .gmk{transition-delay:180ms}
  html.motion .bk-why.armed.in li:nth-child(4) .gmk{transition-delay:270ms}
  html.motion .bk-why.armed.in li:nth-child(5) .gmk{transition-delay:360ms}
  html.motion .bk-why.armed.in li:nth-child(6) .gmk{transition-delay:450ms}
  html.motion .bk-why.armed.in li:hover .gmk{transition-delay:0ms}

  @media (max-width:1080px){
    .gpanel{grid-template-columns:1fr;gap:0}
    .gbody{padding:30px 26px}}

  /* ---------- the dashboard: same device register as the phone on the homepage ---------- */
  .dash{position:relative;padding:34px 34px 34px 0}
  /* a pool of light so the frame sits in the ground rather than on it */
  .dash::before{content:"";position:absolute;left:6%;top:4%;width:78%;height:86%;border-radius:50%;
    background:radial-gradient(circle,rgba(96,78,214,.34),transparent 68%);pointer-events:none}
  .dframe{position:relative;border-radius:16px;padding:8px;
    background:linear-gradient(160deg,#3A3170,#171041 42%,#0B0730);
    box-shadow:0 44px 90px rgba(0,0,0,.55),0 0 0 1px rgba(197,199,227,.15)}
  .dbar{display:flex;gap:6px;padding:5px 6px 9px}
  .dbar i{width:7px;height:7px;border-radius:50%;background:rgba(197,199,227,.3)}
  .dscreen{display:grid;grid-template-columns:132px 1fr;background:#FFFFFF;border-radius:9px;
           overflow:hidden;min-height:322px}

  .dnav{background:#2B2472;padding:16px 12px;display:flex;flex-direction:column;gap:3px}
  .dlogo{display:block;width:22px;height:22px;border-radius:6px;background:rgba(255,255,255,.22);
         margin-bottom:14px}
  .dn{font-size:11.5px;color:rgba(255,255,255,.62);padding:8px 10px;border-radius:7px}
  .dn.on{background:var(--accent);color:#fff;font-weight:600}

  .dmain{padding:18px 20px 20px;color:#17075D}
  .dhead{font-family:'Fraunces',Georgia,serif;font-weight:500;font-size:16px;letter-spacing:-.02em}
  .dtiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
  .dtile{background:rgba(23,7,93,.045);border:1px solid transparent;border-radius:10px;padding:12px 13px;
         transition:border-color .3s ease,background .3s ease,transform .3s ease}
  .dtile.on{border-color:var(--accent);background:rgba(225,84,28,.08);transform:translateY(-2px)}
  .dk{display:block;font-size:9.5px;color:rgba(23,7,93,.55)}
  .dv{display:block;font-family:'JetBrains Mono',monospace;font-weight:500;font-size:21px;
      line-height:1;letter-spacing:-.045em;margin-top:7px;color:#17075D;
      transition:color .3s ease}
  .dtile.on .dv{color:var(--accent)}
  .dd{display:block;font-size:9px;line-height:1.4;color:rgba(23,7,93,.45);margin-top:7px}

  .dstatus{margin-top:14px;background:rgba(23,7,93,.045);border-radius:10px;padding:13px 14px}
  .dsk{display:block;font-size:10px;color:rgba(23,7,93,.55);margin-bottom:9px}
  .drow{display:grid;grid-template-columns:62px 1fr 22px;align-items:center;gap:9px;padding:3px 0}
  .drow i{font-style:normal;font-size:9.5px;color:rgba(23,7,93,.55)}
  .drow b{display:block;height:6px;border-radius:3px;background:var(--accent);width:var(--w);
          transform-origin:left center;transform:scaleX(0)}
  .drow u{text-decoration:none;font-family:'JetBrains Mono',monospace;font-size:9.5px;
          color:rgba(23,7,93,.6);text-align:right}
  .gpanel.lit .drow b{transform:scaleX(1);transition:transform .6s cubic-bezier(.2,.7,.2,1)}
  .gpanel.lit .drow:nth-child(2) b{transition-delay:120ms}
  .gpanel.lit .drow:nth-child(3) b{transition-delay:220ms}
  .gpanel.lit .drow:nth-child(4) b{transition-delay:320ms}
  .gpanel.lit .drow:nth-child(5) b{transition-delay:420ms}

  @media (max-width:1080px){ .dash{padding:0} .dscreen{grid-template-columns:1fr} .dnav{display:none}}
/* the three angles, told as a warm band of figures. Shared with the PEO page. */


  /* ---------- 5 · how the bill comes down, on the warm ground ---------- */
  .bk-how{margin-top:46px}
  .bk-row{display:grid;grid-template-columns:260px 1fr;gap:48px;align-items:start;
          padding:34px 0;border-top:1px solid var(--hair)}
  .bk-row:first-child{border-top:0;padding-top:8px}
  /* the source sits under its own figure, so no block of citations collects at the foot */
  .bk-figw{min-width:0}
  .bk-src{display:block;margin-top:12px;max-width:232px;
          font-family:'JetBrains Mono',monospace;font-size:12px;line-height:1.5;
          letter-spacing:-.01em;color:var(--ink-2)}
  .bk-fig{display:inline-flex;font-family:'JetBrains Mono',monospace;font-weight:500;
          font-size:clamp(38px,4.4vw,60px);line-height:1;letter-spacing:-.055em;color:var(--ink)}
  .bk-row h3{font-family:'Fraunces',Georgia,serif;font-weight:500;font-size:24px;
             letter-spacing:-.02em;line-height:1.24;color:var(--ink)}
  .bk-row p{margin-top:12px;font-size:17px;line-height:1.6;color:var(--ink-1);max-width:60ch}

  @media (max-width:1080px){
    .bk-row{grid-template-columns:1fr;gap:16px}}
/* the commission terms, shared with the PEO page */


  /* the two rates, and nothing competing with them */
  .terms{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:44px;max-width:980px}
  .term{border:1px solid var(--hair);border-radius:20px;padding:34px 36px 32px}
  .term .yr{font-size:14.5px;color:var(--ink-2)}
  .term .rate{margin-top:18px;font-family:'JetBrains Mono';font-size:clamp(48px,5vw,72px);
              font-weight:500;line-height:1;letter-spacing:-.055em;color:var(--accent)}
  .term p{margin-top:16px;font-size:16px;line-height:1.6;color:var(--ink-2)}
  .ast{font-size:20px;vertical-align:super;color:var(--ink-3);margin-left:2px}
  .term p.fine{margin-top:10px;font-size:13px;color:var(--ink-3)}

/* ── phone ──────────────────────────────────────────────────────────────────
   The dashboard sat below all three cards, so whichever tile it lit belonged to a
   card the reader could no longer see, and the connection the whole component rests
   on was invisible. On a phone the frame goes and each card opens into its own
   paragraph. */
@media (max-width:720px){
  .gpanel{display:block;margin-top:0}
  .gpanel .dash{display:none}
  .gbody{display:none}          /* the paragraphs live in the cards now */

  .gains{gap:12px;margin-top:30px}
  .gain{position:relative;padding:22px 56px 22px 20px}
  /* a card that opens should not also behave like something that lifts */
  .gain:hover{transform:none;border-color:rgba(197,199,227,.14)}
  /* the orange wash read as a highlight painted onto the card rather than as the card
     being open. The border and the sign carry the state instead. */
  .gain[aria-expanded="true"]{background:var(--panel);border-color:var(--accent)}
  .gain h3{margin-top:14px;font-size:20px}
  /* the bar is a mark here, not a hover affordance */
  .gain .gmk{width:44px}

  /* the same sign the FAQ uses, so one mark in the project means "this opens" */
  .gsign{position:absolute;right:18px;top:20px;
         width:26px;height:26px;border-radius:50%;
         background:rgba(197,199,227,.16);color:var(--ink-1);
         font-size:17px;line-height:26px;text-align:center;
         transition:background .2s ease,color .2s ease,transform .25s ease}
  .gain[aria-expanded="true"] .gsign{background:var(--accent);color:#FFFFFF;
                                     transform:rotate(45deg)}

  /* 0fr -> 1fr, the one accordion technique in the project. It needs no height cap and
     therefore cannot clip a long paragraph. */
  .gain .gtext{display:grid;grid-template-rows:0fr;animation:none;
               transition:grid-template-rows .3s cubic-bezier(.2,.7,.2,1)}
  .gain[aria-expanded="true"] .gtext{grid-template-rows:1fr}
  .gain .gtin{overflow:hidden}
  .gain .gtext p{font-size:16px;max-width:none;padding-top:16px}
  .gain .gtext .gkick{margin-top:16px;max-width:none;font-size:19px}
}
