/* =====================================================================
   SafeToOpen website: "Summarise this page" (29 Nov 2026, his ask).
   A very visible button in the hero of each product page opens a modal with
   a short, plain summary, written the way an assistant would answer
   "summarise this page, what does this product do, in short".
   Motion (insh.v1.js): the purple button grows into the window (container
   transform with a spring), the words fade in from a soft blur, and on
   close the window shrinks back into the button. Reduced motion = a fade.
   House rules: no one-sided borders, no grid textures, no icon tiles or
   number badges, purple not teal, labels 4px with no dots.
   ===================================================================== */
.insh-btn{display:inline-flex;align-items:center;gap:9px;margin:0 0 20px;padding:9px 16px 9px 13px;min-height:42px;border:0;border-radius:8px;background:#4537b5;color:#fff;font-family:inherit;font-size:14px;font-weight:700;line-height:1.2;letter-spacing:-.005em;cursor:pointer;box-shadow:0 10px 24px -12px rgba(69,55,181,.75),0 2px 6px rgba(69,55,181,.18);transition:background .18s,transform .15s,box-shadow .18s}
.insh-btn svg{width:18px;height:18px;flex:none}
.insh-btn .insh-btn__ar{width:16px;height:16px;transition:transform .18s}
.insh-btn:hover{background:#3a2d9e;transform:translateY(-1px);box-shadow:0 14px 28px -12px rgba(69,55,181,.8),0 2px 6px rgba(69,55,181,.2)}
.insh-btn:hover .insh-btn__ar{transform:translateX(3px)}
.insh-btn:active{transform:translateY(0) scale(.98)}
.insh-btn:focus-visible{outline:3px solid #9b91f2;outline-offset:3px}
[dir="rtl"] .insh-btn .insh-btn__ar{transform:scaleX(-1)}
[dir="rtl"] .insh-btn:hover .insh-btn__ar{transform:scaleX(-1) translateX(3px)}

/* the window: the shadow sits on the dialog as a drop-shadow so it follows the shape while it grows */
.insh-dlg{padding:0;border:0;background:transparent;color:var(--ink,#0e1a30);width:min(600px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);overflow:visible;filter:drop-shadow(0 28px 36px rgba(14,26,48,.26)) drop-shadow(0 4px 10px rgba(14,26,48,.10))}
/* fading out: slow start, so the page stays dimmed while the window shrinks back; fading in: quick start */
.insh-dlg::backdrop{background:rgba(14,26,48,0);-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0);transition:background .46s cubic-bezier(.5,0,.75,0),backdrop-filter .46s cubic-bezier(.5,0,.75,0),-webkit-backdrop-filter .46s cubic-bezier(.5,0,.75,0)}
.insh-dlg.is-in::backdrop{background:rgba(14,26,48,.5);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition-duration:.4s;transition-timing-function:cubic-bezier(.2,.8,.2,1)}
.insh-dlg__in{position:relative;max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;padding:26px 30px 0;border-radius:20px;background:#fff}
.insh-dlg__in:focus{outline:none}
.insh-dlg__k{display:inline-block;margin:0 0 16px;padding:3px 8px;border-radius:4px;background:#eeecfb;color:#4537b5;font-size:12px;font-weight:700;line-height:1.4;letter-spacing:0}
.insh-dlg__x{position:absolute;top:16px;inset-inline-end:16px;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#f1f3f8;color:#3a4252;cursor:pointer;transition:background .15s,color .15s}
.insh-dlg__x:hover{background:#e4e8f1;color:var(--ink,#0e1a30)}
.insh-dlg__x:focus-visible{outline:3px solid #4537b5;outline-offset:2px}
.insh-dlg__x svg{width:18px;height:18px}
.insh-dlg__s{font-size:1rem;line-height:1.65;color:#2a3344}
.insh-dlg__s p{margin:0 0 14px}
.insh-dlg__s p:first-child{padding-inline-end:36px;font-size:1.16rem;line-height:1.55;font-weight:500;color:var(--ink,#0e1a30)}
.insh-dlg__s ul{margin:0 0 14px;padding-inline-start:1.15em}
.insh-dlg__s li{margin:0 0 8px;padding-inline-start:.25em}
.insh-dlg__s li::marker{color:#8a80dc}
.insh-dlg__s>:last-child{margin-bottom:0}
.insh-w{display:inline}
/* the buttons stay pinned to the bottom when the text is longer than the window; a soft fade (no line) shows there is more */
.insh-dlg__f{position:sticky;bottom:0;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:8px;padding:14px 0 26px;background:#fff}
.insh-dlg__f::before{content:"";position:absolute;inset-inline:0;bottom:100%;height:28px;background:linear-gradient(rgba(255,255,255,0),#fff);pointer-events:none;opacity:0;transition:opacity .2s}
.insh-scroll .insh-dlg__f::before{opacity:1}
.insh-dlg__more{padding:10px 4px;border:0;background:none;font:inherit;font-size:14px;font-weight:700;color:var(--cobalt,#003ea5);cursor:pointer}
.insh-dlg__more:hover,.insh-dlg__more:focus-visible{text-decoration:underline;text-underline-offset:3px}
html:has(.insh-dlg[open]){overflow:hidden}

/* phones: a sheet at the bottom of the screen */
@media (max-width:600px){
  .insh-btn{min-height:44px}
  .insh-dlg{width:100vw;max-height:92dvh;margin:auto 0 0}
  .insh-dlg__in{max-height:92dvh;padding:22px 20px 0;border-radius:20px 20px 0 0}
  .insh-dlg__s{font-size:.95rem;line-height:1.6}
  .insh-dlg__s p{margin-bottom:12px}
  .insh-dlg__s ul{margin-bottom:12px}
  .insh-dlg__s li{margin-bottom:6px}
  .insh-dlg__f{gap:4px 16px;padding:12px 0 calc(14px + env(safe-area-inset-bottom))}
  .insh-dlg__more{width:100%;padding:8px 4px}
  .insh-dlg__x{width:44px;height:44px;top:12px}
  .insh-dlg__s p:first-child{font-size:1.04rem}
  .insh-dlg__f .btn{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){.insh-btn,.insh-btn .insh-btn__ar,.insh-dlg::backdrop{transition:none!important}}
@media print{.insh-btn,.insh-dlg{display:none!important}}
