/* Hero illustration: a small business website that looks fine, gets hacked, then gets fixed. */
.attack-scene{width:100%;max-width:540px;min-width:0;margin-left:auto;align-self:center;color:#0a0a0a;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --tone:#a3a3a3;--tone-soft:#1f1f1f;--tone-line:#0a0a0a}
.attack-scene[data-phase="1"]{--tone:#ff453a;--tone-soft:#3a0907;--tone-line:#e10600}
.attack-scene[data-phase="2"]{--tone:#30d158;--tone-soft:#08321a;--tone-line:#0a7a3b}

.attack-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #d4d4d4}
.attack-heading>span{min-width:0;font:650 11px/1.5 var(--display);letter-spacing:.9px;text-transform:uppercase;color:#676767}
.attack-replay{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:8px 0;color:#676767;font:600 12.5px/1 inherit;cursor:pointer;flex:none}
.attack-replay .icon{width:15px;height:15px;stroke-width:2}
.attack-replay:hover{color:#e10600}

/* Browser frame */
.attack-window{position:relative;min-width:0;margin-top:14px;border-radius:16px;background:#000;border:1px solid #262626;color:#f5f5f5;overflow:hidden;box-shadow:0 34px 70px -28px #00000066}
.attack-window::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--tone);transition:background .45s;z-index:4}
.attack-bar{display:flex;align-items:center;gap:12px;min-width:0;padding:11px 14px;background:#0b0b0b;border-bottom:1px solid #222}
.attack-dots{display:flex;gap:6px;flex:none}
.attack-dots i{width:9px;height:9px;border-radius:50%;background:#333}
.attack-url{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;background:#1a1a1a;color:#d4d4d4;font-size:12.5px;line-height:1;white-space:nowrap;transition:background .4s,color .4s}
.attack-url-text{min-width:0;overflow:hidden;text-overflow:ellipsis}
.attack-url-icon{display:grid;flex:none}
.attack-url-icon .icon{width:13px;height:13px;stroke-width:2.2}
.attack-url-icon.is-alert{display:none}
.attack-scene[data-phase="1"] .attack-url{background:#3a0907;color:#ff453a}
.attack-scene[data-phase="1"] .attack-url-icon{display:none}
.attack-scene[data-phase="1"] .attack-url-icon.is-alert{display:grid}
.attack-scene[data-phase="2"] .attack-url-icon{color:#30d158}
.attack-status{flex:none;display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:var(--tone-soft);color:var(--tone);font:700 10.5px/1 var(--mono);letter-spacing:.6px;white-space:nowrap;transition:background .45s,color .45s}
.attack-status-dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}

/* The small business website inside the frame */
.shop{position:relative;height:238px;padding:14px 16px;background:#fff;color:#0a0a0a;overflow:hidden}
.shop-nav{display:flex;align-items:center;gap:8px;padding-bottom:11px;border-bottom:1px solid #eee}
.shop-logo{width:20px;height:20px;border-radius:6px;background:#0a0a0a;flex:none}
.shop-nav b{font:750 13px/1 var(--display);letter-spacing:-.3px;white-space:nowrap}
.shop-links{display:flex;gap:10px;margin-left:auto}
.shop-links i{width:32px;height:6px;border-radius:3px;background:#e5e5e5}
.shop-cart{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#f5f5f5;flex:none}
.shop-cart .icon{width:14px;height:14px;stroke-width:2}
.shop-hero{display:grid;grid-template-columns:minmax(0,1fr) 40%;gap:14px;align-items:center;margin-top:13px}
.shop-copy strong{display:block;font:800 18px/1.12 var(--display);letter-spacing:-.6px}
.shop-btn{display:inline-block;margin-top:10px;padding:7px 12px;border-radius:7px;background:#0a0a0a;color:#fff;font:700 11px/1 var(--display)}
.shop-img{position:relative;height:76px;border-radius:10px;background:linear-gradient(135deg,#f5f5f5,#e5e5e5);overflow:hidden}
.shop-img::before{content:"";position:absolute;left:18%;bottom:-18%;width:46%;height:80%;border-radius:12px 12px 0 0;background:#d4d4d4}
.shop-img::after{content:"";position:absolute;right:14%;top:18%;width:22%;height:30%;border-radius:50%;background:#e10600;opacity:.85}
.shop-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:13px}
.shop-products span{display:flex;align-items:center;gap:8px;padding:8px;border-radius:9px;border:1px solid #eee;background:#fafafa}
.shop-products i{width:30px;height:30px;border-radius:7px;background:#e5e5e5;flex:none}
.shop-products b{font:700 12px/1 var(--display)}

/* Red browser warning that lands once the site is flagged */
.shop-warning{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:20px 24px 76px;text-align:center;background:#c40500;color:#fff;opacity:0;transform:scale(1.04);transition:opacity .35s,transform .35s;pointer-events:none}
.shop-warning .icon{width:30px;height:30px;stroke-width:2;margin-bottom:2px}
.shop-warning strong{font:800 18px/1.15 var(--display);letter-spacing:-.4px}
.shop-warning small{font-size:12.5px;line-height:1.4;color:#ffd9d6}
.attack-scene[data-warning="on"] .shop-warning{opacity:1;transform:none}

/* Our badge once it is fixed */
.shop-badge{position:absolute;z-index:2;left:50%;top:10px;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:#0a7a3b;color:#fff;font:700 11.5px/1 var(--display);white-space:nowrap;box-shadow:0 8px 20px -8px #0a7a3b99;opacity:0;transform:translate(-50%,-16px);transition:opacity .4s,transform .4s}
.shop-badge .icon{width:13px;height:13px;stroke-width:2.4}
.attack-scene[data-phase="2"] .shop-badge{opacity:1;transform:translate(-50%,0)}

/* Phone-style notifications */
.shop-toasts{position:absolute;z-index:3;right:10px;bottom:10px;width:min(252px,74%);list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.shop-toast{display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;align-items:center;padding:8px 10px;border-radius:11px;background:#fff;border:1px solid #e5e5e5;box-shadow:0 12px 26px -12px #00000059}
.shop-toast>span{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#f5f5f5;color:#0a0a0a}
.shop-toast .icon{width:14px;height:14px;stroke-width:2.2}
.shop-toast div{min-width:0}
.shop-toast strong{display:block;font:700 12px/1.25 var(--display);letter-spacing:-.1px;color:#0a0a0a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shop-toast small{display:block;margin-top:1px;font-size:11px;line-height:1.3;color:#676767;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shop-toast[data-tone="bad"]{border-color:#ffd0cd}
.shop-toast[data-tone="bad"]>span{background:#fff1f1;color:#e10600}
.shop-toast[data-tone="bad"] strong{color:#b30500}
.shop-toast[data-tone="good"]>span{background:#e8f8ee;color:#0a7a3b}

/* Story text and the numbers that matter to an owner */
.attack-head{padding:16px 20px 2px;min-height:112px}
.attack-label{font:700 11px/1.4 var(--mono);letter-spacing:.8px;color:var(--tone);transition:color .45s}
.attack-head h3{margin:6px 0 5px;font:750 25px/1.1 var(--display);letter-spacing:-.9px;color:#fff}
.attack-head p{margin:0;font-size:13.5px;line-height:1.5;color:#a3a3a3}
.attack-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:12px 20px 18px;border:1px solid #222;border-radius:12px;overflow:hidden;background:#222}
.attack-stats>div{min-width:0;padding:10px 12px;background:#0b0b0b}
.attack-stats span{display:block;font-size:11.5px;line-height:1.3;color:#8a8a8a}
.attack-stats strong{display:block;margin-top:4px;font:800 22px/1.1 var(--display);letter-spacing:-.6px;color:#fff;font-variant-numeric:tabular-nums;transition:color .45s}
.attack-scene[data-phase="1"] .attack-stats strong{color:#ff453a}
.attack-scene[data-phase="2"] .attack-stats strong{color:#30d158}

/* Stage tabs */
.attack-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px;border-bottom:1px solid #d4d4d4}
.attack-stage{display:flex;align-items:center;gap:8px;min-height:48px;padding:4px 0 12px;background:none;border:0;border-bottom:3px solid transparent;text-align:left;color:#676767;cursor:pointer;font:inherit;transition:color .25s,border-color .25s}
.attack-stage>span{font:11px var(--mono);color:#8a8a8a}
.attack-stage>strong{font:650 14px/1.3 var(--display);letter-spacing:-.3px}
.attack-stage[aria-selected="true"]{color:#0a0a0a;border-bottom-color:var(--tone-line)}
.attack-stage[aria-selected="true"]>span{color:var(--tone-line)}
.attack-stage:hover{color:#0a0a0a}
.attack-stage:focus-visible,.attack-replay:focus-visible,.attack-window:focus-visible{outline:2px solid var(--tone-line);outline-offset:3px}
.attack-caption{margin-top:10px;font-size:12px;line-height:1.6;color:#6b6b6b}

@media (prefers-reduced-motion:no-preference){
  .attack-scene[data-phase="1"] .attack-status-dot{animation:attack-pulse 1.1s ease-in-out infinite}
  .shop-toast.is-new{animation:attack-toast-in .45s cubic-bezier(.2,.8,.2,1) both}
  .attack-scene[data-warning="on"] .shop-warning .icon{animation:attack-pulse 1.2s ease-in-out 3}
}
@keyframes attack-pulse{50%{opacity:.4;transform:scale(.8)}}
@keyframes attack-toast-in{from{opacity:0;transform:translateY(14px) scale(.96)}}

@media (max-width:1100px){
  .attack-head{min-height:0;padding:16px 18px 2px}
  .attack-head h3{font-size:23px}
  .attack-stats{margin-inline:18px}
}
@media (max-width:640px){
  .attack-scene{max-width:none;margin:0}
  .attack-heading>span{font-size:10.5px;letter-spacing:.6px}
  .attack-bar{padding:10px 12px;gap:8px}
  .attack-url{padding:6px 10px;font-size:12px}
  .shop{height:226px;padding:12px}
  .shop-copy strong{font-size:16px}
  .shop-img{height:66px}
  .shop-products{gap:7px}
  .shop-products span{padding:6px;gap:6px}
  .shop-products i{width:24px;height:24px}
  .shop-toasts{width:auto;left:10px}
  .shop-warning{padding:16px 18px 80px}
  .shop-warning strong{font-size:16px}
  .attack-head{padding:14px 14px 2px}
  .attack-head h3{font-size:21px}
  .attack-head p{font-size:13px}
  .attack-stats{margin:10px 14px 14px}
  .attack-stats>div{padding:9px 10px}
  .attack-stats span{font-size:11px}
  .attack-stats strong{font-size:19px}
  .attack-stage{gap:6px}
  .attack-stage>strong{font-size:13px}
}
@media (max-width:420px){
  .shop-links{display:none}
  .shop-nav b{margin-right:auto}
  .attack-status{font-size:9.5px;padding:5px 8px;letter-spacing:.3px}
}
@media (max-width:380px){.attack-dots{display:none}.attack-stage>span{display:none}}

/* Keep the warning text clear of the notifications stacked on the right (desktop) or bottom (phone). */
.shop-warning{align-items:flex-start;text-align:left;padding:20px calc(min(252px,74%) + 34px) 20px 24px}
@media (max-width:640px){
  .shop-warning{justify-content:flex-start;padding:16px 16px 0}
  .shop-warning .icon{width:26px;height:26px}
  .shop-toast:nth-last-child(n+3){display:none}
}
