/* Atlas "Uses the Computer Like a Human" browser animation – shared by atlas.html (feature band) and the home hero.
   The host frame supplies size + border + container-type (see .feature-media on atlas.html / .hero-a2 on index.html);
   .a2 fills it and is em-sized off a width-tracking font. Markup + controller + arming: atlas-a2.js. */
/* ——— Animation 2 (Uses the Computer Like a Human): the card is a browser window. Chrome-style tab strip + address bar,
   then miniature versions of the real screens (mail · the Applied Epic remake · the Summit Mutual portal), driven by a
   script that moves the cursor to each element's true position. Everything is em-sized off a width-tracking font. ——— */
.a2 {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif; letter-spacing: 0; line-height: 1.35;
  font-size: clamp(7px, 2.05cqw, 11.5px);
  color: #222; background: #fff; overflow: hidden;
}
/* browser chrome (dark, like Chrome) */
.a2-chrome { flex: none; background: #202124; color: #e8eaed; }
.a2-tabs { display: flex; align-items: flex-end; gap: 0.15em; padding: 0.6em 0.8em 0; height: 3.2em; }
.a2-tab {
  display: flex; align-items: center; gap: 0.55em; height: 2.6em; padding: 0 1.1em; max-width: 14em;
  font-size: 0.95em; color: #9aa0a6; background: transparent; border-radius: 0.7em 0.7em 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; cursor: default;
}
.a2-tab.on { background: #35363a; color: #e8eaed; }
.a2-tab .fav { flex: none; width: 0.9em; height: 0.9em; border-radius: 0.2em; }
.fav-mail { background: #d93025; } .fav-epic { background: #1d2a5e; border: 1px solid #6f7bb6; } .fav-portal { background: #245ea8; }
.a2-newtab { color: #9aa0a6; padding: 0 0.6em 0.5em; font-size: 1.2em; }
.a2-addr { display: flex; align-items: center; gap: 0.8em; height: 2.9em; padding: 0 0.9em; background: #35363a; }
.a2-nav { color: #9aa0a6; font-size: 1.05em; letter-spacing: 0.25em; }
.a2-url { flex: 1; display: flex; align-items: center; gap: 0.5em; height: 2em; padding: 0 0.9em; background: #202124; border-radius: 1em; font-size: 0.95em; color: #e8eaed; }
.a2-url svg { width: 0.95em; height: 0.95em; fill: none; stroke: #9aa0a6; stroke-width: 1.4; }
.a2-url b { font-weight: 400; }
/* pages */
.a2-pages { flex: 1; min-height: 0; position: relative; background: #fff; }
.a2-page { position: absolute; inset: 0; overflow: hidden; opacity: 0; }
.a2-page.on { opacity: 1; }
/* — mail — */
.a2-mail { background: #f6f8fc; }
.m-top { display: flex; align-items: center; justify-content: space-between; padding: 0.9em 1.4em; background: #fff; border-bottom: 1px solid #e3e6ea; }
.m-top b { font-size: 1.15em; color: #202124; } .m-top span { font-size: 0.9em; color: #777; background: #eef1f5; padding: 0.35em 1em; border-radius: 1em; }
.m-msg { margin: 1.2em 1.4em; padding: 1.2em 1.4em; background: #fff; border: 1px solid #e3e6ea; border-radius: 0.5em; }
.m-from { display: flex; align-items: center; gap: 0.8em; }
.m-from i { width: 2.6em; height: 2.6em; border-radius: 50%; background: #5b6672; color: #fff; font-style: normal; font-weight: 700; font-size: 0.95em; display: grid; place-items: center; }
.m-from b { display: block; font-size: 1.05em; } .m-from span { font-size: 0.9em; color: #666; }
.m-subj { margin-top: 1em; font-size: 1.3em; font-weight: 700; color: #202124; }
/* pinned (.a2-scoped, higher specificity) so page rules like atlas .feature p / home .hero h1 can't restyle these – the
   reference render (atlas.html @0a073b6) is the Space Grotesk email body at 50ch and an Arial portal heading */
.a2 .m-msg p { margin: 0.7em 0 0; font-family: var(--sans); font-size: 1.05em; line-height: 1.5; color: #333; max-width: 50ch; }
/* — Applied Epic (remake) — */
.e-menubar { height: 1.8em; background: #f1f1f1; border-bottom: 1px solid #d9d9d9; display: flex; align-items: center; gap: 1.2em; padding: 0 0.8em; font-size: 0.92em; color: #222; }
.e-optbar { height: 4.2em; background: #1d2a5e; display: flex; align-items: stretch; padding: 0 0.6em; }
.e-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2em; min-width: 5em; padding: 0 0.5em; color: #fff; font-size: 0.9em; }
.e-opt svg { width: 1.9em; height: 1.9em; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.e-opt.active { background: rgba(255,255,255,0.16); }
.e-ctx { display: flex; align-items: baseline; gap: 0.8em; padding: 0.55em 0.9em; border-bottom: 1px solid #e3e3e3; }
.e-ctx b { color: #1f2d5c; font-size: 1.15em; } .e-ctx span { font-size: 0.9em; color: #666; }
.e-bar { margin: 0.7em 0.8em 0; background: #e8e8e8; border: 1px solid #d6d6d6; padding: 0.2em 0.6em; font-size: 1.05em; font-weight: 600; color: #222; }
.e-grid { width: calc(100% - 1.6em); margin: 0 0.8em; border-collapse: collapse; font-size: 0.98em; border: 1px solid #e3e3e3; border-top: none; }
.e-grid th { height: 1.9em; padding: 0 0.6em; text-align: left; font-weight: 600; background: #f7f7f7; border-bottom: 1px solid #cfcfcf; border-right: 1px solid #e6e6e6; white-space: nowrap; }
.e-grid td { height: 1.85em; padding: 0 0.6em; border-bottom: 1px solid #ececec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 14em; }
.e-grid tr.sel td { background: #d6e6f8; box-shadow: inset 0 1px 0 #2f7fd6, inset 0 -1px 0 #2f7fd6; }
.e-grid tr.e-new { display: none; } .e-grid tr.e-new.show { display: table-row; }
.e-grid tr.e-new.show td { background: #eaf6ea; box-shadow: inset 0 1px 0 #34b233, inset 0 -1px 0 #34b233; }
.e-status { position: absolute; left: 0; right: 0; bottom: 0; height: 1.9em; background: #f0f0f0; border-top: 1px solid #c8c8c8; display: flex; align-items: center; font-size: 0.88em; color: #333; }
.e-status span { padding: 0 1em; border-right: 1px solid #c8c8c8; white-space: nowrap; } .e-status .sp { flex: 1; border: none; } .e-status span:last-child { border-right: none; }
/* — Summit Mutual Agent Center — */
.a2-portal { background: #eef1f5; }
.p-head { display: flex; align-items: center; justify-content: space-between; padding: 0.55em 1.2em; background: #14325c; color: #fff; }
.p-logo { display: flex; align-items: center; gap: 0.5em; line-height: 1; }
.p-logo svg { width: 2.2em; height: 2.2em; }
.p-logo b { display: block; font-size: 1.15em; letter-spacing: 0.08em; } .p-logo em { display: block; font-style: normal; font-size: 0.72em; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; margin-top: 0.3em; }
.p-user { font-size: 0.92em; }
.p-strip { padding: 0.4em 1.2em; background: #fff; border-bottom: 1px solid #c9ced6; font-size: 0.88em; color: #5b6672; } .p-strip b { color: #1f2933; }
.p-nav { display: flex; background: #245ea8; }
.p-nav span { padding: 0.55em 1.2em; color: #fff; font-size: 0.88em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 3px solid transparent; }
.p-nav span.on { background: #14325c; border-bottom-color: #f0a500; }
.p-page { padding: 0.9em 1.2em; }
.a2 .p-page h1 { font-family: inherit; font-size: 1.35em; font-weight: 700; line-height: 1.35; letter-spacing: 0; color: #14325c; margin: 0 0 0.6em; }
.a2 .p-page h1 em { font-family: inherit; font-style: normal; font-weight: 400; font-size: 0.8em; line-height: inherit; letter-spacing: 0; color: #5b6672; vertical-align: baseline; margin: 0; }
.p-panel { background: #fff; border: 1px solid #c9ced6; }
.p-panel.off { display: none; }
.p-title { background: #e6ebf2; border-bottom: 1px solid #c9ced6; padding: 0.45em 1em; font-size: 0.92em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #14325c; }
.p-body { padding: 0.9em 1em; display: flex; flex-direction: column; gap: 0.7em; }
.p-body label { display: block; font-size: 0.92em; font-weight: 700; color: #2b3540; }
.p-body label i { color: #b42318; font-style: normal; margin-left: 0.15em; }
.p-row3 { display: grid; grid-template-columns: 5em 1fr 1fr; gap: 0.8em; }
.p-half { width: 45%; }
.p-input { display: flex; align-items: center; margin-top: 0.3em; height: 2.3em; padding: 0 0.6em; border: 1px solid #8d97a3; border-radius: 3px; background: #fff; font-weight: 400; font-size: 1.05em; color: #1f2933; white-space: nowrap; overflow: hidden; }
.p-input.mono { font-family: "JetBrains Mono", Menlo, monospace; font-size: 1em; }
.p-actions { display: flex; justify-content: flex-end; margin-top: 0.2em; }
.p-btn { display: inline-flex; align-items: center; height: 2.5em; padding: 0 1.3em; background: #245ea8; border: 1px solid #1b4b8a; border-radius: 3px; color: #fff; font-size: 0.95em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.p-btn.down { background: #1b4b8a; transform: scale(0.97); }
.p-notice { display: none; margin-bottom: 0.7em; padding: 0.9em 1em; background: #eaf6ea; border: 1px solid #1f7a3a; color: #1f7a3a; font-size: 1.02em; }
.p-notice.show { display: block; }
/* tab furniture */
.a2-tab .t { overflow: hidden; text-overflow: ellipsis; }
.a2-tab .x { flex: none; margin-left: auto; font-weight: 400; font-size: 1.15em; line-height: 1; color: #9aa0a6; }
.a2-tab.on .x { color: #e8eaed; }
.a2-newtab { align-self: center; padding: 0 0.6em; margin-top: 0.3em; line-height: 1; }
/* Epic views */
.e-view { display: none; }
.a2-epic[data-view="locate"] .ev-locate, .a2-epic[data-view="account"] .ev-account, .a2-epic[data-view="policy"] .ev-policy,
.a2-epic[data-view="activities"] .ev-activities, .a2-epic[data-view="newact"] .ev-newact { display: block; }
.e-lhead { padding: 0.6em 0.9em 0.3em; } .e-lhead b { font-size: 1.15em; font-weight: 600; }
.e-filter { display: flex; align-items: center; gap: 0.5em; margin: 0 0.8em; padding: 0.35em 0.5em; background: #f6f6f6; border: 1px solid #e3e3e3; font-size: 0.95em; }
.e-sel, .e-inp { display: inline-flex; align-items: center; height: 1.9em; padding: 0 0.45em; border: 1px solid #a9a9a9; background: #fff; font-size: 0.98em; white-space: nowrap; }
.e-sel { min-width: 9em; color: #222; } .e-inp { width: 14em; color: #111; overflow: hidden; } .e-inp.w-l { width: 26em; }
.e-find { padding: 0 0.6em; color: #222; }
.e-hide { display: none; } .e-hide.show { display: table-row; }
.e-bar .right { margin-left: auto; font-weight: 400; font-size: 0.9em; }
.e-link { color: #1b6fd1; }
.e-kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.45em 1.2em; margin: 0.6em 0.9em 0; font-size: 1em; }
.e-kv dt { color: #444; text-align: right; } .e-kv dd { margin: 0; font-weight: 600; color: #111; }
.e-form { display: grid; grid-template-columns: max-content 1fr; gap: 0.55em 0.8em; align-items: center; padding: 0.7em 0.9em; font-size: 0.98em; }
.e-form label { text-align: right; color: #333; white-space: nowrap; } .e-form label i { color: #b03030; font-style: normal; }
.e-btnrow { display: flex; justify-content: flex-end; gap: 0.6em; padding: 0.2em 0.9em; }
.e-btn { display: inline-flex; align-items: center; height: 2.1em; padding: 0 1.2em; border: 1px solid #2f6fd6; color: #2f6fd6; background: #fff; border-radius: 3px; font-weight: 600; font-size: 0.98em; }
.e-btn.fill { background: #2f6fd6; color: #fff; } .e-btn.down { transform: scale(0.97); filter: brightness(0.9); }
.a2 .focus { outline: 2px solid #f0a500; outline-offset: 1px; }
.a2 .focus::after { content: ""; width: 1px; height: 1.2em; margin-left: 1px; background: #1f2933; animation: a2Caret 1s step-end infinite; }
/* cursor */
.a2-cursor {
  position: absolute; left: 0; top: 0; width: 1.5em; height: 1.5em; z-index: 5;
  fill: #111; stroke: #fff; stroke-width: 1; stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
  opacity: 0; transform: translate(90%, 90%);
  transition: transform 520ms cubic-bezier(.3,.7,.3,1), opacity 300ms ease;
  pointer-events: none;
}
.a2-cursor.show { opacity: 1; }
.a2-cursor.down { transition-duration: 90ms; }
@keyframes a2Caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .a2-cursor { display: none; } }
